From: Donald Sharp Date: Fri, 2 Dec 2016 13:09:15 +0000 (-0500) Subject: pimd: Fix so creation of prefix happens one time X-Git-Tag: frr-3.0-branchpoint~64^2~10^2~45 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=1319c91f3baf41b247651c2145cc940d41e5a2b1;p=mirror%2Ffrr.git 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 --- 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;