Initialize notification strucuture. This was missed in an earlier commit

MFC after: 3 days
This commit is contained in:
Michael Tuexen 2014-07-24 18:06:18 +00:00
parent a382af08f8
commit 56711f9433
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=269075

View File

@ -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);