1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-05 18:05:16 +00:00
Mark Johnston 4ee6a830d6 pf: Fix a use of an uninitialized variable
pf_find_state_all() expects the caller to initialize "*more" if it is
non-NULL, but pf_handle_natlook() didn't obey this protocol.  Follow the
pattern from OpenBSD and initialize it in the caller.

Also make pf_find_state_all() unconditionally initialize "*more" for
good measure.

Fixes:		71d3c7041d70 ("pf: convert DIOCNATLOOK to netlink")
Reported by:	KMSAN
Reviewed by:	kp
Differential Revision:	https://reviews.freebsd.org/D47405
2024-11-03 16:46:53 +00:00
..
2024-09-06 12:34:33 -06:00