Message ID | 41d6276cc9ae9fe95605a7ac1f74a2a3ee009d4c.1573552924.git.pabeni@redhat.com |
---|---|
State | Superseded, archived |
Headers | show |
Series | mptcp: disable mptcp when md5sig is set | expand |
diff --git a/net/mptcp/options.c b/net/mptcp/options.c index e0c6a3b98544..9080a5fed918 100644 --- a/net/mptcp/options.c +++ b/net/mptcp/options.c @@ -371,8 +371,7 @@ static bool mptcp_established_options_mp(struct sock *sk, unsigned int *size, pr_debug("subflow=%p, local_key=%llu, remote_key=%llu", subflow, subflow->local_key, subflow->remote_key); return true; - } else if (subflow->mp_join && !subflow->fourth_ack && - remaining >= TCPOLEN_MPTCP_MPJ_ACK) { + } else if (subflow->mp_join && !subflow->fourth_ack) { opts->suboptions = OPTION_MPTCP_MPJ_ACK; memcpy(opts->hmac, subflow->hmac, MPTCPOPT_HMAC_LEN); *size = TCPOLEN_MPTCP_MPJ_ACK;
we now have centralized check in mptcp_established_options() Squash-to: "mptcp: Add handling of outgoing MP_JOIN requests" Signed-off-by: Paolo Abeni <pabeni@redhat.com> --- net/mptcp/options.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)