summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2009-06-08 03:56:15 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2009-06-08 03:56:15 +0000
commit28c69e7a50272e72863b9fb291699e8653b43930 (patch)
tree0cb3f2316720378da3734c567e6af2bab9f53316
parent441ab46c5e3608bddf66e824246295cbc02f52bf (diff)
in pf_print_state_parts, do not use skw->proto to print the protocol
but our local copy proto that we very carefully set beforehands. skw being NULL is perfectly valid there.
-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 bfb9ac9e0a5..a7ced6b29a0 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.650 2009/06/08 02:36:06 sthen Exp $ */
+/* $OpenBSD: pf.c,v 1.651 2009/06/08 03:56:14 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1340,7 +1340,7 @@ pf_print_state_parts(struct pf_state *s,
printf("ICMPv6");
break;
default:
- printf("%u", skw->proto);
+ printf("%u", proto);
break;
}
switch (dir) {