diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-11-09 01:40:08 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-12-22 02:26:14 +0100 |
commit | 53e39e140d288e429f3c2c73db056a5bc4ac4659 (patch) | |
tree | 02d14296ad0de4babbb9f471319d6d40b92fa1de /pimd/pim_join.c | |
parent | pimd: Fix 'show ip pim join json' output (diff) | |
download | frr-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.c | 1 |
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) { |