commit | a9ac49d303f967be0dabd97cb722c4a13109c6c2 | [log] [tgz] |
---|---|---|
author | Jeff Layton <jlayton@redhat.com> | Thu Jan 22 14:43:21 2009 -0500 |
committer | Steve French <sfrench@us.ibm.com> | Thu Jan 29 03:32:13 2009 +0000 |
tree | cf170dfaff4b5559eb814806e5cfb573f3e4be93 | |
parent | da505c386c9f993e43861791dae339b2219cf8dd [diff] |
cifs: make sure we allocate enough storage for socket address The sockaddr declared on the stack in cifs_get_tcp_session is too small for IPv6 addresses. Change it from "struct sockaddr" to "struct sockaddr_storage" to prevent stack corruption when IPv6 is used. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>