freebsd-dev/sys/netpfil
Andrey V. Elsukov d4e6a52959 Avoid possible lock leaking.
After r343619 ipfw uses own locking for packets flow. PULLUP_LEN() macro
is used in ipfw_chk() to make m_pullup(). When m_pullup() fails, it just
returns via `goto pullup_failed`. There are two places where PULLUP_LEN()
is called with IPFW_PF_RLOCK() held.

Add PULLUP_LEN_LOCKED() macro to use in these places to be able release
the lock, when m_pullup() fails.

Sponsored by:	Yandex LLC
2019-07-29 12:55:48 +00:00
..
ipfw Avoid possible lock leaking. 2019-07-29 12:55:48 +00:00
pf pf: zero output buffer in pfioctl 2019-07-24 16:51:14 +00:00