]> 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)
commit51b1b24ac1758113e0ecb838169f5bb7b67f430c
tree9d2dc6eade2421073f138c5b3be74febe9291f91
parentcf18cdf02093a357cb29fb60c1c4367b8e9d520c
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: 8470b3940733 ("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