summaryrefslogtreecommitdiff
path: root/sbin/routed/input.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-13 15:59:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-13 15:59:34 +0000
commite75d648fe3ce72c9c354aeff44a2b7ad5ae6445e (patch)
treefe64acbd2661e351ce2340e86854ad358e4ad688 /sbin/routed/input.c
parentb3b7b3d8f22899a1cee6ba56a850777aad8b8ed9 (diff)
do not allow network-induced tracing
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: