summaryrefslogtreecommitdiffstats
path: root/pimd/pim6_mld.c
diff options
context:
space:
mode:
authorMobashshera Rasool <mrasool@vmware.com>2022-09-16 12:11:35 +0200
committerMobashshera Rasool <mrasool@vmware.com>2022-09-16 12:12:13 +0200
commit5784a878112e44401aec0d12bc962887692244f1 (patch)
tree760fc87dfeedf27d00fca0cfd6cd0c37ff63a4e1 /pimd/pim6_mld.c
parentMerge pull request #11949 from donaldsharp/plist_deletion_failure (diff)
downloadfrr-5784a878112e44401aec0d12bc962887692244f1.tar.xz
frr-5784a878112e44401aec0d12bc962887692244f1.zip
pim6d: Fixing coverity issues for pim6_mld.c
CID 1519843 (#2 of 2): Uninitialized scalar variable (UNINIT) 43. uninit_use_in_call: Using uninitialized value pkt_src->sin6_addr when calling gm_rx_process Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
Diffstat (limited to 'pimd/pim6_mld.c')
-rw-r--r--pimd/pim6_mld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim6_mld.c b/pimd/pim6_mld.c
index b9c3aec30..ce5a000d1 100644
--- a/pimd/pim6_mld.c
+++ b/pimd/pim6_mld.c
@@ -1609,7 +1609,7 @@ static void gm_t_recv(struct thread *t)
char rxbuf[2048];
struct msghdr mh[1] = {};
struct iovec iov[1];
- struct sockaddr_in6 pkt_src[1];
+ struct sockaddr_in6 pkt_src[1] = {};
ssize_t nread;
size_t pktlen;