svn commit: r287456 - head/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Fri Sep 4 09:22:17 UTC 2015


Author: tuexen
Date: Fri Sep  4 09:22:16 2015
New Revision: 287456
URL: https://svnweb.freebsd.org/changeset/base/287456

Log:
  Add a NULL pointer check to silence the clang code analyzer.
  
  MFC after:	1 week

Modified:
  head/sys/netinet/sctputil.c

Modified: head/sys/netinet/sctputil.c
==============================================================================
--- head/sys/netinet/sctputil.c	Fri Sep  4 09:19:01 2015	(r287455)
+++ head/sys/netinet/sctputil.c	Fri Sep  4 09:22:16 2015	(r287456)
@@ -2667,6 +2667,9 @@ sctp_notify_assoc_change(uint16_t state,
 
 #endif
 
+	if (stcb == NULL) {
+		return;
+	}
 	if (sctp_stcb_is_feature_on(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVASSOCEVNT)) {
 		notif_len = sizeof(struct sctp_assoc_change);
 		if (abort != NULL) {


More information about the svn-src-all mailing list