]> bbs.cooldavid.org Git - net-next-2.6.git/commit - net/sctp/associola.c
[SCTP] bug: sctp_assoc_control_transport() breakage
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 21 Nov 2006 01:03:01 +0000 (17:03 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:26:27 +0000 (21:26 -0800)
commit0906e20fa03afdb14faf7fd166bfe4ed67c8db55
treefba766aba261737ad8968552a3049bd50387531b
parentd5c747f6efc03495635f129c8eb1dad0200ab183
[SCTP] bug: sctp_assoc_control_transport() breakage

a) struct sockaddr_storage * passed to sctp_ulpevent_make_peer_addr_change()
actually points at union sctp_addr field in a structure.  Then that sucker
gets copied to userland, with whatever junk we might have there.

b) it's actually having host-endian sin_port.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/associola.c