summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2009-11-26 14:34:49 +0000
committerdlg <dlg@openbsd.org>2009-11-26 14:34:49 +0000
commit49c2c3cc3a357cea1ec14c910365d4024793f714 (patch)
tree86e0b9b12a10824c1c140f395787ab9f1da2bfca
parentinitialize cpu_info correctly. (diff)
downloadwireguard-openbsd-49c2c3cc3a357cea1ec14c910365d4024793f714.tar.xz
wireguard-openbsd-49c2c3cc3a357cea1ec14c910365d4024793f714.zip
magical fix for a fault which reliably brings my firewalls down. i think
not having sks and sks set to NULL causes random memory to be pool_put(). ok deraadt@ jsing@
-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 1cba827dedf..e8d0bd67c4f 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.676 2009/11/23 18:41:21 henning Exp $ */
+/* $OpenBSD: pf.c,v 1.677 2009/11/26 14:34:49 dlg Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -2663,7 +2663,7 @@ pf_test_rule(struct pf_rule **rm, struct pf_state **sm, int direction,
struct pf_rule_slist rules;
struct pf_rule_item *ri;
struct tcphdr *th = pd->hdr.tcp;
- struct pf_state_key *skw, *sks;
+ struct pf_state_key *skw = NULL, *sks = NULL;
struct pf_rule_actions act;
u_short reason;
int rewrite = 0, hdrlen = 0;