diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c index 01c641b87927..ef4e88bb7c66 100644 --- a/sys/netinet/sctp_pcb.c +++ b/sys/netinet/sctp_pcb.c @@ -1233,7 +1233,7 @@ sctp_findassociation_ep_addr(struct sctp_inpcb **inp_p, struct sockaddr *remote, SCTP_TCB_UNLOCK(stcb); goto null_return; } - if (!(local && sctp_does_stcb_own_this_addr(stcb, local))) { + if (local && !sctp_does_stcb_own_this_addr(stcb, local)) { SCTP_TCB_UNLOCK(stcb); goto null_return; } @@ -1334,7 +1334,7 @@ sctp_findassociation_ep_addr(struct sctp_inpcb **inp_p, struct sockaddr *remote, SCTP_TCB_UNLOCK(stcb); continue; } - if (!(local && sctp_does_stcb_own_this_addr(stcb, local))) { + if (local && !sctp_does_stcb_own_this_addr(stcb, local)) { SCTP_TCB_UNLOCK(stcb); continue; }