diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-11-08 19:40:08 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-12-21 20:26:14 -0500 | 
| commit | 53e39e140d288e429f3c2c73db056a5bc4ac4659 (patch) | |
| tree | 02d14296ad0de4babbb9f471319d6d40b92fa1de /pimd/pim_assert.c | |
| parent | 5349cf9a09288e90cc30c43c0ff448a053dd2fe9 (diff) | |
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_assert.c')
| -rw-r--r-- | pimd/pim_assert.c | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/pimd/pim_assert.c b/pimd/pim_assert.c index ca21786aea..29a241b277 100644 --- a/pimd/pim_assert.c +++ b/pimd/pim_assert.c @@ -241,6 +241,7 @@ int pim_assert_recv(struct interface *ifp,    /*      Parse assert group addr     */ +  memset (&sg, 0, sizeof (struct prefix_sg));    offset = pim_parse_addr_group (&sg, curr, curr_size);    if (offset < 1) {      char src_str[INET_ADDRSTRLEN];  | 
