lkml.org 
[lkml]   [2020]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.8 040/633] mptcp: initialize mptcp_options_receiveds ahmac
    Date
    From: Geliang Tang <geliangtang@gmail.com>

    [ Upstream commit fe2d9b1a0e7805384770ec0ddd34c9f1e9fe6fa8 ]

    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>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    net/mptcp/options.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/net/mptcp/options.c
    +++ b/net/mptcp/options.c
    @@ -296,6 +296,7 @@ void mptcp_get_options(const struct sk_b
    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;


    \
     
     \ /
      Last update: 2020-10-27 16:01    [W:5.131 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site