diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-08-25 02:43:29 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2017-08-25 02:49:39 +0200 |
commit | 0af35d90a125952d04aa892522b6be324f2dfbf7 (patch) | |
tree | 30a64161c4e98d6695d8c3104d4dba1c41d8e767 /zebra/irdp_packet.c | |
parent | pimd: Cleanup a variety of SA issues (diff) | |
download | frr-0af35d90a125952d04aa892522b6be324f2dfbf7.tar.xz frr-0af35d90a125952d04aa892522b6be324f2dfbf7.zip |
*: fix assorted issues detected by Coverity Scan
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'zebra/irdp_packet.c')
-rw-r--r-- | zebra/irdp_packet.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/irdp_packet.c b/zebra/irdp_packet.c index 083224553..11bc9b044 100644 --- a/zebra/irdp_packet.c +++ b/zebra/irdp_packet.c @@ -182,6 +182,7 @@ static int irdp_recvmsg(int sock, u_char *buf, int size, int *ifindex) char adata[CMSG_SPACE(SOPT_SIZE_CMSG_PKTINFO_IPV4())]; int ret; + memset(&msg, 0, sizeof(msg)); msg.msg_name = (void *)0; msg.msg_namelen = 0; msg.msg_iov = &iov; |