Skip to content

Commit 17d3df3

Browse files
metze-sambasmfrench
authored andcommitted
cifs: don't send down the destination address to sendmsg for a SOCK_STREAM
This is ignored anyway by the tcp layer. Signed-off-by: Stefan Metzmacher <[email protected]> Cc: [email protected] Reviewed-by: Ronnie Sahlberg <[email protected]> Reviewed-by: Paulo Alcantara (SUSE) <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 7500a99 commit 17d3df3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/cifs/transport.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ smb_send_kvec(struct TCP_Server_Info *server, struct msghdr *smb_msg,
194194

195195
*sent = 0;
196196

197-
smb_msg->msg_name = (struct sockaddr *) &server->dstaddr;
198-
smb_msg->msg_namelen = sizeof(struct sockaddr);
197+
smb_msg->msg_name = NULL;
198+
smb_msg->msg_namelen = 0;
199199
smb_msg->msg_control = NULL;
200200
smb_msg->msg_controllen = 0;
201201
if (server->noblocksnd)

0 commit comments

Comments
 (0)