diff options
author | Geliang Tang <geliangtang@gmail.com> | 2020-10-19 18:23:15 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-10-20 16:32:14 -0700 |
commit | fe2d9b1a0e7805384770ec0ddd34c9f1e9fe6fa8 (patch) | |
tree | 918d549d6dbccbc086436379973196c4f8a7e452 /net/mptcp | |
parent | 47b5d2a107396ab05e83a4dfbd30b563ecbc83af (diff) | |
download | linux-fe2d9b1a0e7805384770ec0ddd34c9f1e9fe6fa8.tar.bz2 |
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/mptcp')
-rw-r--r-- | net/mptcp/options.c | 1 |
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; |