Fix a logical inversion bug.

Thanks to Irene Ruengeler for finding and reporting this bug.

MFC after:	3 days
This commit is contained in:
tuexen 2018-04-08 12:08:20 +00:00
parent 86fa7957c8
commit c3e1813aee
2 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ sctp_notify(struct sctp_inpcb *inp,
#endif
/* no need to unlock here, since the TCB is gone */
} 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);
return;
}

View File

@ -223,7 +223,7 @@ sctp6_notify(struct sctp_inpcb *inp,
}
break;
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);
break;
}