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) {
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to