summaryrefslogtreecommitdiffstats
path: root/pimd/pim_join.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-11-09 01:40:08 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-12-22 02:26:14 +0100
commit53e39e140d288e429f3c2c73db056a5bc4ac4659 (patch)
tree02d14296ad0de4babbb9f471319d6d40b92fa1de /pimd/pim_join.c
parentpimd: Fix 'show ip pim join json' output (diff)
downloadfrr-53e39e140d288e429f3c2c73db056a5bc4ac4659.tar.xz
frr-53e39e140d288e429f3c2c73db056a5bc4ac4659.zip
pimd: Ensure 'struct prefix sg' is inited in right order
When we called pim_parse_addr_group, don't reinitialize the 'struct prefix_sg' *after* we've parsed the group. Ensure in other places that we do this work, we initialize prior as well. Ticket: CM-13510 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_join.c')
-rw-r--r--pimd/pim_join.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pimd/pim_join.c b/pimd/pim_join.c
index 8ef2cada8..53c91ab4a 100644
--- a/pimd/pim_join.c
+++ b/pimd/pim_join.c
@@ -293,6 +293,7 @@ int pim_joinprune_recv(struct interface *ifp,
uint16_t msg_num_pruned_sources;
int source;
+ memset (&sg, 0, sizeof (struct prefix_sg));
addr_offset = pim_parse_addr_group (&sg,
buf, pastend - buf);
if (addr_offset < 1) {