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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295838

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