diff options
author | Geliang Tang <geliangtang@gmail.com> | 2020-06-08 18:47:54 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-08 19:09:41 -0700 |
commit | 8e60eed6b38e464e8c9d68f9caecafaa554dffe0 (patch) | |
tree | a73fec9f2f89599077b500f123242a131af53072 /net/rxrpc/peer_event.c | |
parent | 3763a24c727ecf236358a81ee749e5fcab1c972a (diff) | |
download | linux-stable-8e60eed6b38e464e8c9d68f9caecafaa554dffe0.tar.gz linux-stable-8e60eed6b38e464e8c9d68f9caecafaa554dffe0.tar.bz2 linux-stable-8e60eed6b38e464e8c9d68f9caecafaa554dffe0.zip |
mptcp: bugfix for RM_ADDR option parsing
In MPTCPOPT_RM_ADDR option parsing, the pointer "ptr" pointed to the
"Subtype" octet, the pointer "ptr+1" pointed to the "Address ID" octet:
+-------+-------+---------------+
|Subtype|(resvd)| Address ID |
+-------+-------+---------------+
| |
ptr ptr+1
We should set mp_opt->rm_id to the value of "ptr+1", not "ptr". This patch
will fix this bug.
Fixes: 3df523ab582c ("mptcp: Add ADD_ADDR handling")
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rxrpc/peer_event.c')
0 files changed, 0 insertions, 0 deletions