]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Remove unprotected debug log
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 25 Aug 2016 13:40:48 +0000 (09:40 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:07 +0000 (20:26 -0500)
Upon receiving *,G joins from downstream we were outputing
a unprotected debug.

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

index c7d54d3c04c8be7b5dfe08a3b9cb55a676e90903..09924574203ff9e2af6f291f2555e339ac6dc6ad 100644 (file)
@@ -113,9 +113,10 @@ static void recv_join(struct interface *ifp,
              char buff[100];
 
              strcpy (buff, pim_str_sg_dump (&up->sg));
-             zlog_debug("%s %s: Join(S,G)=%s from %s",
-                        __FILE__, __PRETTY_FUNCTION__,
-                        buff, pim_str_sg_dump (&sg));
+             if (PIM_DEBUG_PIM_TRACE)
+               zlog_debug("%s %s: Join(S,G)=%s from %s",
+                          __FILE__, __PRETTY_FUNCTION__,
+                          buff, pim_str_sg_dump (&sg));
 
               if (pim_upstream_evaluate_join_desired (child))
                 {