Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
mptcp: fix uninit-value in mptcp_incoming_options
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Edward-AD authored and davem330 committed Nov 24, 2023
1 parent c9213dd commit 237ff25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/mptcp/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ static void mptcp_parse_option(const struct sk_buff *skb,
mp_opt->suboptions |= OPTION_MPTCP_DSS;
mp_opt->use_map = 1;
mp_opt->mpc_map = 1;
mp_opt->use_ack = 0;
mp_opt->data_len = get_unaligned_be16(ptr);
ptr += 2;
}
Expand Down

0 comments on commit 237ff25

Please sign in to comment.