Author: tuexen
Date: Fri Aug 22 19:46:22 2014
New Revision: 270353
URL: http://svnweb.freebsd.org/changeset/base/270353

Log:
  MFC r269075:
  
  Initialize notification structures.
  This was missed in an earlier commit

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    Fri Aug 22 19:43:27 2014        
(r270352)
+++ stable/10/sys/netinet/sctputil.c    Fri Aug 22 19:46:22 2014        
(r270353)
@@ -2746,6 +2746,7 @@ sctp_notify_peer_addr_change(struct sctp
                return;
        SCTP_BUF_LEN(m_notify) = 0;
        spc = mtod(m_notify, struct sctp_paddr_change *);
+       memset(spc, 0, sizeof(struct sctp_paddr_change));
        spc->spc_type = SCTP_PEER_ADDR_CHANGE;
        spc->spc_flags = 0;
        spc->spc_length = sizeof(struct sctp_paddr_change);
@@ -3488,6 +3489,7 @@ sctp_notify_remote_error(struct sctp_tcb
        }
        SCTP_BUF_NEXT(m_notify) = NULL;
        sre = mtod(m_notify, struct sctp_remote_error *);
+       memset(sre, 0, notif_len);
        sre->sre_type = SCTP_REMOTE_ERROR;
        sre->sre_flags = 0;
        sre->sre_length = sizeof(struct sctp_remote_error);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to