Skip to content

Commit 557fb58

Browse files
marceloleitnerdavem330
authored andcommitted
sctp: fix return value check in __sctp_rcv_asconf_lookup
As Ben Hutchings noticed, this check should have been inverted: the call returns true in case of success. Reported-by: Ben Hutchings <[email protected]> Fixes: 0c5dc07 ("sctp: validate from_addr_param return") Signed-off-by: Marcelo Ricardo Leitner <[email protected]> Reviewed-by: Xin Long <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 46573e3 commit 557fb58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/sctp/input.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ static struct sctp_association *__sctp_rcv_asconf_lookup(
12031203
if (unlikely(!af))
12041204
return NULL;
12051205

1206-
if (af->from_addr_param(&paddr, param, peer_port, 0))
1206+
if (!af->from_addr_param(&paddr, param, peer_port, 0))
12071207
return NULL;
12081208

12091209
return __sctp_lookup_association(net, laddr, &paddr, transportp);

0 commit comments

Comments
 (0)