1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-27 16:39:08 +00: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:
Michael Tuexen 2018-04-08 12:08:20 +00:00
parent ff77d7a560
commit efcf28ef77
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=332273
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;
}