summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-06-24 23:56:33 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-06-24 23:56:33 +0000
commitc0cf66397cb710980a34a3368c632eb52943b59d (patch)
tree5c195e92b70dfe9fefbff0c41d5f35c6418c8901
parent6125bcb48aaa4cae72f9628769b7a2ad52e96d86 (diff)
do not refer uninitialized var
-rw-r--r--sys/net/pf.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index 5c2676fb94d..72e02cb9fa3 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.16 2001/06/24 23:50:11 itojun Exp $ */
+/* $OpenBSD: pf.c,v 1.17 2001/06/24 23:56:32 itojun Exp $ */
/*
* Copyright (c) 2001, Daniel Hartmeier
@@ -1553,10 +1553,6 @@ pf_test_state_icmp(int direction, struct ifnet *ifp, struct mbuf **m, int off,
printf("packetfilter: ICMP error message too short\n");
return NULL;
}
- if (len < off2) {
- printf("packetfilter: ICMP error message too short\n");
- return NULL;
- }
/* offset of protocol header that follows h2 */
off2 = off + (h2->ip_hl << 2);