Fix a logical inversion bug.
Thanks to Irene Ruengeler for finding and reporting this bug. MFC after: 3 days
This commit is contained in:
parent
86fa7957c8
commit
c3e1813aee
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user