Fix a logical inversion bug.

Thanks to Irene Ruengeler for finding and reporting this bug.

MFC after:	3 days
This commit is contained in:
Michael Tuexen 2018-04-08 12:08:20 +00:00
parent ff77d7a560
commit efcf28ef77
2 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ sctp_notify(struct sctp_inpcb *inp,
#endif #endif
/* no need to unlock here, since the TCB is gone */ /* no need to unlock here, since the TCB is gone */
} else if (icmp_code == ICMP_UNREACH_NEEDFRAG) { } else if (icmp_code == ICMP_UNREACH_NEEDFRAG) {
if ((net->dest_state & SCTP_ADDR_NO_PMTUD) == 0) { if (net->dest_state & SCTP_ADDR_NO_PMTUD) {
SCTP_TCB_UNLOCK(stcb); SCTP_TCB_UNLOCK(stcb);
return; return;
} }

View File

@ -223,7 +223,7 @@ sctp6_notify(struct sctp_inpcb *inp,
} }
break; break;
case ICMP6_PACKET_TOO_BIG: case ICMP6_PACKET_TOO_BIG:
if ((net->dest_state & SCTP_ADDR_NO_PMTUD) == 0) { if (net->dest_state & SCTP_ADDR_NO_PMTUD) {
SCTP_TCB_UNLOCK(stcb); SCTP_TCB_UNLOCK(stcb);
break; break;
} }