summaryrefslogtreecommitdiff
path: root/pimd/pim_util.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-12-02 08:09:15 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-12-21 20:26:18 -0500
commit1319c91f3baf41b247651c2145cc940d41e5a2b1 (patch)
tree80a030eeef8e2660fbef68dbd907e81b4255d9ea /pimd/pim_util.c
parentb815998a4296c6e7ce12faa37eaff0d7d0f697d7 (diff)
pimd: Fix so creation of prefix happens one time
Fix code so that the creation of the 224 prefix happens one time. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_util.c')
-rw-r--r--pimd/pim_util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pimd/pim_util.c b/pimd/pim_util.c
index f5255a241d..087101e1a2 100644
--- a/pimd/pim_util.c
+++ b/pimd/pim_util.c
@@ -114,7 +114,10 @@ pim_is_group_224_4 (struct in_addr group_addr)
struct prefix group;
if (first)
- str2prefix ("224.0.0.0/4", &group_all);
+ {
+ str2prefix ("224.0.0.0/4", &group_all);
+ first = 0;
+ }
group.family = AF_INET;
group.u.prefix4 = group_addr;