summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2022-09-14 05:25:46 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-09-28 11:02:52 +0200
commit9922d8abb347ee2f74fe5800cb5f2e2c243856f1 (patch)
treed49569afcfad258b002c7745386acb34a999196b
parentfe9302b4087f584eebb7f0c5d1024d76662db47e (diff)
downloadlinux-stable-9922d8abb347ee2f74fe5800cb5f2e2c243856f1.tar.gz
linux-stable-9922d8abb347ee2f74fe5800cb5f2e2c243856f1.tar.bz2
linux-stable-9922d8abb347ee2f74fe5800cb5f2e2c243856f1.zip
cifs: don't send down the destination address to sendmsg for a SOCK_STREAM
commit 17d3df38dc5f4cec9b0ac6eb79c1859b6e2693a4 upstream. This is ignored anyway by the tcp layer. Signed-off-by: Stefan Metzmacher <metze@samba.org> Cc: stable@vger.kernel.org Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com> Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz> Signed-off-by: Steve French <stfrench@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--fs/cifs/transport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c
index 59643acb6d67..3f9029cf09fc 100644
--- a/fs/cifs/transport.c
+++ b/fs/cifs/transport.c
@@ -168,8 +168,8 @@ smb_send_kvec(struct TCP_Server_Info *server, struct msghdr *smb_msg,
*sent = 0;
- smb_msg->msg_name = (struct sockaddr *) &server->dstaddr;
- smb_msg->msg_namelen = sizeof(struct sockaddr);
+ smb_msg->msg_name = NULL;
+ smb_msg->msg_namelen = 0;
smb_msg->msg_control = NULL;
smb_msg->msg_controllen = 0;
if (server->noblocksnd)