]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: fix transport encap_port update in sctp_vtag_verify
authorXin Long <lucien.xin@gmail.com>
Thu, 14 Oct 2021 04:50:55 +0000 (00:50 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Oct 2021 10:21:10 +0000 (11:21 +0100)
commit075718fdaf0efe20223571236c1bf14ca35a7aa1
tree9d2dc6eade2421073f138c5b3be74febe9291f91
parentc2402d43d183b11445aed921e7bebcd47ef222f1
sctp: fix transport encap_port update in sctp_vtag_verify

transport encap_port update should be updated when sctp_vtag_verify()
succeeds, namely, returns 1, not returns 0. Correct it in this patch.

While at it, also fix the indentation.

Fixes: a1dd2cf2f1ae ("sctp: allow changing transport encap_port by peer packets")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/sm.h