Author: tuexen
Date: Wed Jun 6 19:51:55 2018
New Revision: 334728
URL: https://svnweb.freebsd.org/changeset/base/334728
Log:
MFC r333304:
Ensure we are not dereferencing a NULL pointer.
CID: 1385266
Modified:
stable/11/sys/netinet/sctp_indata.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/netinet/sctp_indata.c
==============================================================================
--- stable/11/sys/netinet/sctp_indata.c Wed Jun 6 19:48:39 2018
(r334727)
+++ stable/11/sys/netinet/sctp_indata.c Wed Jun 6 19:51:55 2018
(r334728)
@@ -3619,7 +3619,9 @@ sctp_strike_gap_ack_chunks(struct sctp_tcb *stcb, stru
SCTP_SO_NOT_LOCKED);
}
/* Make sure to flag we had a FR */
- tp1->whoTo->net_ack++;
+ if (tp1->whoTo != NULL) {
+ tp1->whoTo->net_ack++;
+ }
continue;
}
}
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"