summaryrefslogtreecommitdiff
path: root/sbin/routed/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/routed/input.c')
-rw-r--r--sbin/routed/input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/routed/input.c b/sbin/routed/input.c
index 31b0dd63ba2..ed732d3282e 100644
--- a/sbin/routed/input.c
+++ b/sbin/routed/input.c
@@ -175,6 +175,7 @@ rip_input(from, rip, size)
case RIPCMD_TRACEON:
case RIPCMD_TRACEOFF:
/* verify message came from a privileged port */
+#ifdef TRACING
if ((*afp->af_portcheck)(from) == 0)
return;
@@ -186,6 +187,7 @@ rip_input(from, rip, size)
traceon(rip->rip_tracefile);
else
traceoff();
+#endif
return;
case RIPCMD_RESPONSE: