From 1319c91f3baf41b247651c2145cc940d41e5a2b1 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 2 Dec 2016 08:09:15 -0500 Subject: [PATCH] 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 --- pimd/pim_util.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.39.5