[libav-stable] sctp: Always initialize outmsg struct

Vittorio Giovara git at libav.org
Mon Jun 8 14:09:25 CEST 2015


Module: libav
Branch: master
Commit: 8ef98855d25e457094468e2e1a79d9b10d6445b2

Author:    Vittorio Giovara <vittorio.giovara at gmail.com>
Committer: Vittorio Giovara <vittorio.giovara at gmail.com>
Date:      Wed Jun  3 14:16:45 2015 +0100

sctp: Always initialize outmsg struct

CC: libav-stable at libav.org
Bug-Id: CID 1302711

---

 libavformat/sctp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/sctp.c b/libavformat/sctp.c
index 71b3a4b..57fd044 100644
--- a/libavformat/sctp.c
+++ b/libavformat/sctp.c
@@ -116,7 +116,7 @@ static int ff_sctp_recvmsg(int s, void *msg, size_t len, struct sockaddr *from,
 static int ff_sctp_send(int s, const void *msg, size_t len,
                         const struct sctp_sndrcvinfo *sinfo, int flags)
 {
-    struct msghdr outmsg;
+    struct msghdr outmsg = { 0 };
     struct iovec iov;
 
     outmsg.msg_name       = NULL;



More information about the libav-stable mailing list