Skip to content

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]>
  • Loading branch information
ea1davis authored and intel-lab-lkp committed Nov 23, 2023
1 parent 937c332 commit 136a155
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 136a155

Please sign in to comment.