svn commit: r294153 - stable/10/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Sat Jan 16 14:50:44 UTC 2016
Author: tuexen
Date: Sat Jan 16 14:50:43 2016
New Revision: 294153
URL: https://svnweb.freebsd.org/changeset/base/294153
Log:
MFC r287456:
Add a NULL pointer check to silence the clang code analyzer.
Modified:
stable/10/sys/netinet/sctputil.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/netinet/sctputil.c
==============================================================================
--- stable/10/sys/netinet/sctputil.c Sat Jan 16 14:48:54 2016 (r294152)
+++ stable/10/sys/netinet/sctputil.c Sat Jan 16 14:50:43 2016 (r294153)
@@ -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-stable-10
mailing list