diff --git a/net/mptcp/mptcp_input.c b/net/mptcp/mptcp_input.c index 2fee1cb46b9f91..f5788c6919b011 100644 --- a/net/mptcp/mptcp_input.c +++ b/net/mptcp/mptcp_input.c @@ -1757,7 +1757,7 @@ void mptcp_parse_options(const uint8_t *ptr, int opsize, /* If tcp_sock is not available, MPTCP version can't be * retrieved and ADD_ADDR opsize validation is not possible. */ - if (!tp) + if (!tp || !tp->mpcb) break; if (!is_valid_addropt_opsize(tp->mpcb->mptcp_ver,