Kristof Provost b2e0b24f76 pf: Fix panic on overlapping interface names
In rare situations[*] it's possible for two different interfaces to have
the same name. This confuses pf, because kifs are indexed by name (which
is assumed to be unique). As a result we can end up trying to
if_rele(NULL), which panics.

Explicitly checking the ifp pointer before if_rele() prevents the panic.
Note pf will likely behave in unexpected ways on the the overlapping
interfaces.

[*] Insert an interface in a vnet jail. Rename it to an interface which
exists on the host. Remove the jail. There are now two interfaces with
the same name in the host.
2018-12-01 09:58:21 +00:00
..
2018-11-30 22:44:33 +00:00
2018-11-30 22:44:33 +00:00
2018-11-27 00:36:35 +00:00
2018-10-20 20:45:49 +00:00
2018-10-20 22:39:35 +00:00
2018-11-22 20:49:41 +00:00
2018-11-30 22:44:33 +00:00
2018-11-21 00:21:58 +00:00