Skip to content
Commit 5b0b9e4c authored by Francesco Ruggeri's avatar Francesco Ruggeri Committed by Jakub Kicinski
Browse files

tcp: md5: incorrect tcp_header_len for incoming connections



In tcp_create_openreq_child we adjust tcp_header_len for md5 using the
remote address in newsk. But that address is still 0 in newsk at this
point, and it is only set later by the callers (tcp_v[46]_syn_recv_sock).
Use the address from the request socket instead.

Fixes: cfb6eeb4 ("[TCP]: MD5 Signature Option (RFC2385) support.")
Signed-off-by: default avatarFrancesco Ruggeri <fruggeri@arista.com>
Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20220421005026.686A45EC01F2@us226.sjc.aristanetworks.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent fc06b286
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment