summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>2001-06-26 19:09:44 +0000
committerNiels Provos <provos@cvs.openbsd.org>2001-06-26 19:09:44 +0000
commit0180436f1c8b218d99b5b03b06f6bd8a6b4cb548 (patch)
tree9541f7abcc4fdd68de0de9d8cb926091cc105509 /sys
parent23a1a5c274674aac0d4529cc5063898088def592 (diff)
get rid of another printf
Diffstat (limited to 'sys')
-rw-r--r--sys/net/pf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index 9b3dba83ce2..d87e1b49a38 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.56 2001/06/26 19:01:55 provos Exp $ */
+/* $OpenBSD: pf.c,v 1.57 2001/06/26 19:09:43 provos Exp $ */
/*
* Copyright (c) 2001, Daniel Hartmeier
@@ -2080,8 +2080,9 @@ pf_test(int direction, struct ifnet *ifp, struct mbuf *m)
}
if (m->m_pkthdr.len < sizeof(*h)) {
- printf("pf: ip header too short\n");
action = PF_DROP;
+ reason = PFRES_SHORT;
+ log = 1;
goto done;
}
h = mtod(m, struct ip *);