Message ID | 73a0f63505099116d8f4fbba9e4c9399d007c555.1573738703.git.pabeni@redhat.com |
---|---|
State | Accepted, archived |
Delegated to: | Matthieu Baerts |
Headers | show |
Series | mptcp: disable mptcp when md5sig is set | expand |
diff --git a/net/mptcp/options.c b/net/mptcp/options.c index 80c0cff135c0..cde6ba918686 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(-)