Skip to content

Commit 237ff25

Browse files
ea1davisdavem330
authored andcommitted
mptcp: fix uninit-value in mptcp_incoming_options
Added initialization use_ack to mptcp_parse_option(). Reported-by: [email protected] Signed-off-by: Edward Adam Davis <[email protected]> Acked-by: Paolo Abeni <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c9213dd commit 237ff25

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/mptcp/options.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ static void mptcp_parse_option(const struct sk_buff *skb,
108108
mp_opt->suboptions |= OPTION_MPTCP_DSS;
109109
mp_opt->use_map = 1;
110110
mp_opt->mpc_map = 1;
111+
mp_opt->use_ack = 0;
111112
mp_opt->data_len = get_unaligned_be16(ptr);
112113
ptr += 2;
113114
}

0 commit comments

Comments
 (0)