tweak the pflog ifname filter to include the terminating nul.
authordlg <dlg@openbsd.org>
Mon, 28 Mar 2022 02:58:06 +0000 (02:58 +0000)
committerdlg <dlg@openbsd.org>
Mon, 28 Mar 2022 02:58:06 +0000 (02:58 +0000)
commitdaa036ab29b3b631024303b79474dba44bcc1380
tree7237a201845b24838ac4bab88091a91c4c0627c9
parent2057b8a2658551363c6f4b079add41753811dbc6
tweak the pflog ifname filter to include the terminating nul.

without this the code effectively just compares the start of the
string, which means you can get a prefix match unexpectedly. including
the nul in the comparison means it only works for whole interface
names, as it was originally intended.

reported by Aner Perez on misc@
ok deraadt@ (who also dug through the history behind this)
lib/libpcap/gencode.c