svn commit: r228531 - head/lib/libc/net
Michael Tuexen
tuexen at FreeBSD.org
Thu Dec 15 12:35:04 UTC 2011
Author: tuexen
Date: Thu Dec 15 12:35:03 2011
New Revision: 228531
URL: http://svn.freebsd.org/changeset/base/228531
Log:
Fix a bug where sctp_sendmdg() uses uninitialized memory.
MFC after: 3 days.
Modified:
head/lib/libc/net/sctp_sys_calls.c
Modified: head/lib/libc/net/sctp_sys_calls.c
==============================================================================
--- head/lib/libc/net/sctp_sys_calls.c Thu Dec 15 12:14:15 2011 (r228530)
+++ head/lib/libc/net/sctp_sys_calls.c Thu Dec 15 12:35:03 2011 (r228531)
@@ -563,6 +563,7 @@ sctp_sendmsg(int s,
#ifdef SYS_sctp_generic_sendmsg
struct sctp_sndrcvinfo sinfo;
+ memset(&sinfo, 0, sizeof(struct sctp_sndrcvinfo));
sinfo.sinfo_ppid = ppid;
sinfo.sinfo_flags = flags;
sinfo.sinfo_stream = stream_no;
More information about the svn-src-all
mailing list