mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
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
ff77d7a560
commit
efcf28ef77
2 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue