summaryrefslogtreecommitdiffstats
path: root/net/mptcp/protocol.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2021-03-04 22:32:16 +0100
committerDavid S. Miller <davem@davemloft.net>2021-03-04 23:30:13 +0100
commit9238e900d6ec2e9b9ca3d8a9731acfd587fc577a (patch)
tree6a3340a36ed349a0e61c5a25fd2ba2afff4ac551 /net/mptcp/protocol.c
parentmptcp: fix missing wakeup (diff)
downloadlinux-9238e900d6ec2e9b9ca3d8a9731acfd587fc577a.tar.xz
linux-9238e900d6ec2e9b9ca3d8a9731acfd587fc577a.zip
mptcp: free resources when the port number is mismatched
When the port number is mismatched with the announced ones, use 'goto dispose_child' to free the resources instead of using 'goto out'. This patch also moves the port number checking code in subflow_syn_recv_sock before mptcp_finish_join, otherwise subflow_drop_ctx will fail in dispose_child. Fixes: 5bc56388c74f ("mptcp: add port number check for MP_JOIN") Reported-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Geliang Tang <geliangtang@gmail.com> Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mptcp/protocol.c')
0 files changed, 0 insertions, 0 deletions