]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Fix so creation of prefix happens one time
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 2 Dec 2016 13:09:15 +0000 (08:09 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:18 +0000 (20:26 -0500)
Fix code so that the creation of the 224 prefix happens
one time.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_util.c

index f5255a241da38be05b703a1af06061ff7edcf801..087101e1a291b166e76dd01927ab6a26af1ecf8b 100644 (file)
@@ -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;