svn commit: r334728 - stable/11/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Wed Jun 6 19:51:55 UTC 2018


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;
 				}
 			}


More information about the svn-src-stable mailing list