diff options
author | Xin Long <lucien.xin@gmail.com> | 2016-02-28 10:03:51 +0800 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2016-07-10 23:06:59 -0400 |
commit | 67eab3249eacc0861cf57f6d929e66bf78159379 (patch) | |
tree | 4c3fbcaa8aff1036e57d87ff00d04ee75f2b77de /net/ipv4 | |
parent | 8590142dc5b464c3bbf60ef0b14322850983c1c1 (diff) |
sctp: lack the check for ports in sctp_v6_cmp_addr
[ Upstream commit 40b4f0fd74e46c017814618d67ec9127ff20f157 ]
As the member .cmp_addr of sctp_af_inet6, sctp_v6_cmp_addr should also check
the port of addresses, just like sctp_v4_cmp_addr, cause it's invoked by
sctp_cmp_addr_exact().
Now sctp_v6_cmp_addr just check the port when two addresses have different
family, and lack the port check for two ipv6 addresses. that will make
sctp_hash_cmp() cannot work well.
so fix it by adding ports comparison in sctp_v6_cmp_addr().
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions