]> git.baikalelectronics.ru Git - kernel.git/commit
[SCTP] bug: sctp_assoc_lookup_laddr() is broken with ipv6.
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 21 Nov 2006 01:02:22 +0000 (17:02 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:26:25 +0000 (21:26 -0800)
commit304f3d87d8d4c72db32b138ae6fbeb157f532b21
treef6597abfd94ce7b3a0b40b0082361cf6076dc8e9
parent5106315bf292080d96f6a995af0f63463c6b3c78
[SCTP] bug: sctp_assoc_lookup_laddr() is broken with ipv6.

It expects (and gets) laddr with net-endian sin_port.  And then it calls
sctp_bind_addr_match(), which *does* care about port numbers in case of
ipv6 and expects them to be host-endian.

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