freebsd-src/lib/libpfctl
Kristof Provost 2cffb52514 libpfctl: fix pfctl_do_ioctl()
pfctl_do_ioctl() copies the packed request data into the request buffer
and then frees it. However, it's possible for the buffer to be too small
for the reply, causing us to allocate a new buffer. We then copied from
the freed request, and freed it again.

Do not free the request buffer until we're all the way done.

PR:		274614
Reviewed by:	emaste
MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D42329
2023-10-24 09:50:31 +02:00
..
libpfctl.c libpfctl: fix pfctl_do_ioctl() 2023-10-24 09:50:31 +02:00
libpfctl.h pf: allow states to be killed by their pre-NAT address 2023-10-23 16:37:05 +02:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00