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)
This commit is contained in:
Kristof Provost 2016-02-20 12:53:53 +00:00
parent 36e9c2cef0
commit c90369f880

View File

@ -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) {