summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2011-04-07 19:35:06 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2011-04-07 19:35:06 +0000
commit559d1069d34336f13ae212677d6de4754e772a1a (patch)
tree8a3c8c65190de8055468c4b7bda88a116e151d8a /sys/net
parent702d794d38b4104672f33c0778d343444c8db8ca (diff)
Correctly initialize local variables in pf_check_proto_cksum(), even for
less blessed and non-loved protocols; temporary fix for correctness until the henning tornado rampages this function. "pls commit, ok" henning@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/pf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index c52a9cc7ccd..db6623d599d 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.738 2011/04/06 13:18:39 claudio Exp $ */
+/* $OpenBSD: pf.c,v 1.739 2011/04/07 19:35:05 miod Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -5369,7 +5369,7 @@ pf_check_proto_cksum(struct mbuf *m, int off, int len, u_int8_t p,
#ifdef INET6
case IPPROTO_ICMPV6:
#endif /* INET6 */
- flag_ok = flag_bad = 0;
+ flag_ok = flag_out = flag_bad = 0;
break;
default:
return (1);