Fix a bug I introduced in r209470.

MFC after: 3 days
This commit is contained in:
Michael Tuexen 2010-06-24 07:43:25 +00:00
parent bcec9ed0f1
commit 370d524f00

View File

@ -1233,7 +1233,7 @@ sctp_findassociation_ep_addr(struct sctp_inpcb **inp_p, struct sockaddr *remote,
SCTP_TCB_UNLOCK(stcb); SCTP_TCB_UNLOCK(stcb);
goto null_return; 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); SCTP_TCB_UNLOCK(stcb);
goto null_return; goto null_return;
} }
@ -1334,7 +1334,7 @@ sctp_findassociation_ep_addr(struct sctp_inpcb **inp_p, struct sockaddr *remote,
SCTP_TCB_UNLOCK(stcb); SCTP_TCB_UNLOCK(stcb);
continue; 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); SCTP_TCB_UNLOCK(stcb);
continue; continue;
} }