From 56711f94334e94d584ecfefdaca028784899dcd7 Mon Sep 17 00:00:00 2001 From: Michael Tuexen Date: Thu, 24 Jul 2014 18:06:18 +0000 Subject: [PATCH] Initialize notification strucuture. This was missed in an earlier commit MFC after: 3 days --- sys/netinet/sctputil.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c index 24b423163570..34b92f8df9ed 100644 --- a/sys/netinet/sctputil.c +++ b/sys/netinet/sctputil.c @@ -2746,6 +2746,7 @@ sctp_notify_peer_addr_change(struct sctp_tcb *stcb, uint32_t state, 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 *stcb, uint16_t error, struct sctp_erro } 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);