summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2020-10-19 12:23:15 +0200
committerJakub Kicinski <kuba@kernel.org>2020-10-21 01:32:14 +0200
commitfe2d9b1a0e7805384770ec0ddd34c9f1e9fe6fa8 (patch)
tree918d549d6dbccbc086436379973196c4f8a7e452 /net
parentnet/sched: act_ct: Fix adding udp port mangle operation (diff)
downloadlinux-fe2d9b1a0e7805384770ec0ddd34c9f1e9fe6fa8.tar.xz
linux-fe2d9b1a0e7805384770ec0ddd34c9f1e9fe6fa8.zip
mptcp: initialize mptcp_options_received's ahmac
Initialize mptcp_options_received's ahmac to zero, otherwise it will be a random number when receiving ADD_ADDR suboption with echo-flag=1. Fixes: 3df523ab582c5 ("mptcp: Add ADD_ADDR handling") Signed-off-by: Geliang Tang <geliangtang@gmail.com> Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net')
-rw-r--r--net/mptcp/options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mptcp/options.c b/net/mptcp/options.c
index 092a2d48bfd3..1ff3469938b6 100644
--- a/net/mptcp/options.c
+++ b/net/mptcp/options.c
@@ -297,6 +297,7 @@ void mptcp_get_options(const struct sk_buff *skb,
mp_opt->mp_capable = 0;
mp_opt->mp_join = 0;
mp_opt->add_addr = 0;
+ mp_opt->ahmac = 0;
mp_opt->rm_addr = 0;
mp_opt->dss = 0;