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 /ripngd | |
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 'ripngd')
-rw-r--r-- | ripngd/ripngd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c index 2883698f4..d8017622d 100644 --- a/ripngd/ripngd.c +++ b/ripngd/ripngd.c @@ -176,6 +176,7 @@ int ripng_send_packet(caddr_t buf, int bufsize, struct sockaddr_in6 *to, addr.sin6_port = htons(RIPNG_PORT_DEFAULT); } + memset(&msg, 0, sizeof(msg)); msg.msg_name = (void *)&addr; msg.msg_namelen = sizeof(struct sockaddr_in6); msg.msg_iov = &iov; @@ -228,6 +229,7 @@ static int ripng_recv_packet(int sock, u_char *buf, int bufsize, char adata[1024]; /* Fill in message and iovec. */ + memset(&msg, 0, sizeof(msg)); msg.msg_name = (void *)from; msg.msg_namelen = sizeof(struct sockaddr_in6); msg.msg_iov = &iov; |