diff options
author | kp <kp@FreeBSD.org> | 2016-02-20 12:53:53 +0000 |
---|---|---|
committer | kp <kp@FreeBSD.org> | 2016-02-20 12:53:53 +0000 |
commit | e846a24ec77a90e2590de7dc06d7e155dc7875ba (patch) | |
tree | 9311b56986677344c4eabaaf35ed8e4ec2aa9c31 | |
parent | e9cf712fdabf0a3b6b3e8e1e7f239a4e1c4e2d1f (diff) | |
download | FreeBSD-src-e846a24ec77a90e2590de7dc06d7e155dc7875ba.zip FreeBSD-src-e846a24ec77a90e2590de7dc06d7e155dc7875ba.tar.gz |
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.
Obtained from: OpenBSD (henning)
-rw-r--r-- | sys/netpfil/pf/pf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c index 1b77153..283dddc9 100644 --- a/sys/netpfil/pf/pf.c +++ b/sys/netpfil/pf/pf.c @@ -1848,7 +1848,7 @@ pf_print_state_parts(struct pf_state *s, printf("ICMPv6"); break; default: - printf("%u", skw->proto); + printf("%u", proto); break; } switch (dir) { |