freebsd-src/usr.sbin/bsnmpd
Kristof Provost f1612e7087 libpfctl: fix file descriptor leak
pfctl_get_rules_info() opened a netlink socket, but failed to close it again.
Fix this by factoring out the netlink-based function into a _h variant that
takes struct pfctl_handle, and implement pfctl_get_rules_info() based on that,
remembering to close the fd.

While here migrate all in-tree consumers to the _h variant.

MFC after:	3 days
Sponsored by:	Rubicon Communications, LLC ("Netgate")
2024-05-09 14:07:07 +02:00
..
bsnmpd Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
gensnmptree Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
modules libpfctl: fix file descriptor leak 2024-05-09 14:07:07 +02:00
tools Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00