freebsd-skq/sys/netpfil/ipfw
Sean Bruno 488c0a7ca8 Fix NULL pointer deref in ipfw when using dummynet at layer 2.
Drop packet if pkg->ifp is NULL, which is the case here.

ref. https://github.com/HardenedBSD/hardenedBSD
commit 4eef3881c64f6e3aa38eebbeaf27a947a5d47dd7

PR 193861 --  DUMMYNET LAYER2: kernel panic

in this case a kernel panic occurs. Hence, when we do not get an interface,
we just drop the packet in question.

PR:		193681
Submitted by:	David Carlier <david.carlier@hardenedbsd.org>
Obtained from:	Hardened BSD
MFC after:	2 weeks
Relnotes:	yes
2014-09-25 02:26:05 +00:00
..
test
dn_heap.c
dn_heap.h
dn_sched_fifo.c
dn_sched_prio.c
dn_sched_qfq.c
dn_sched_rr.c
dn_sched_wf2q.c
dn_sched.h
dummynet.txt
ip_dn_glue.c
ip_dn_io.c
ip_dn_private.h
ip_dummynet.c
ip_fw2.c
ip_fw_dynamic.c
ip_fw_log.c
ip_fw_nat.c
ip_fw_pfil.c
ip_fw_private.h
ip_fw_sockopt.c
ip_fw_table.c