]> git.itanic.dy.fi Git - linux-stable/commit
sctp: fix return value check in __sctp_rcv_asconf_lookup
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Wed, 28 Jul 2021 02:40:54 +0000 (23:40 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Aug 2021 10:27:40 +0000 (12:27 +0200)
commite0310bbeaaa283e14b39c9d669679be19c4ce94c
tree7ccac6e91fd2a1462fce2399835579c906502e50
parent408614108abd50820fe961430529c3dc7ebe4fd1
sctp: fix return value check in __sctp_rcv_asconf_lookup

[ Upstream commit 557fb5862c9272ad9b21407afe1da8acfd9b53eb ]

As Ben Hutchings noticed, this check should have been inverted: the call
returns true in case of success.

Reported-by: Ben Hutchings <ben@decadent.org.uk>
Fixes: 0c5dc070ff3d ("sctp: validate from_addr_param return")
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Reviewed-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sctp/input.c