Author: tuexen
Date: Wed Jun  6 20:28:17 2018
New Revision: 334734
URL: https://svnweb.freebsd.org/changeset/base/334734

Log:
  MFstable/11 r334728:
  
  Ensure we are not dereferencing a NULL pointer.
  
  CID:          1385266
  Approved by: re (marius@)

Modified:
  releng/11.2/sys/netinet/sctp_indata.c
Directory Properties:
  releng/11.2/   (props changed)

Modified: releng/11.2/sys/netinet/sctp_indata.c
==============================================================================
--- releng/11.2/sys/netinet/sctp_indata.c       Wed Jun  6 20:09:21 2018        
(r334733)
+++ releng/11.2/sys/netinet/sctp_indata.c       Wed Jun  6 20:28:17 2018        
(r334734)
@@ -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]"

Reply via email to