summaryrefslogtreecommitdiffstats
path: root/ripd
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-08-25 02:43:29 +0200
committerRenato Westphal <renato@opensourcerouting.org>2017-08-25 02:49:39 +0200
commit0af35d90a125952d04aa892522b6be324f2dfbf7 (patch)
tree30a64161c4e98d6695d8c3104d4dba1c41d8e767 /ripd
parentpimd: Cleanup a variety of SA issues (diff)
downloadfrr-0af35d90a125952d04aa892522b6be324f2dfbf7.tar.xz
frr-0af35d90a125952d04aa892522b6be324f2dfbf7.zip
*: fix assorted issues detected by Coverity Scan
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ripd')
-rw-r--r--ripd/ripd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ripd/ripd.c b/ripd/ripd.c
index d9b38bba8..36eceafd9 100644
--- a/ripd/ripd.c
+++ b/ripd/ripd.c
@@ -1685,6 +1685,7 @@ int rip_recvmsg(int sock, u_char *buf, int size, struct sockaddr_in *from,
struct cmsghdr *ptr;
char adata[1024];
+ memset(&msg, 0, sizeof(msg));
msg.msg_name = (void *)from;
msg.msg_namelen = sizeof(struct sockaddr_in);
msg.msg_iov = &iov;