pf: fix use of uninitialised variable
In pf_match_rule() we attempt to append matching rules to the end of
'match_rules'. We want to preserve the order to make the multiple
pflog entries easier to understand. So we keep track of the last added
rule item in 'rt'. However, that assumed that 'match_rules' was only
ever added to in that one call to pf_match_rules(). This isn't always
the case, for example if we have match rules in different anchors.
In that case we'd end up using the uninitialised 'rt' variable in the
SLIST_INSERT_AFTER call.
Instead track the match rules and the last matching rule (to enable
easy appending) in the struct pf_test_ctx.
This also allows us to reduce the number of arguments for some
functions, because we passed a ctx to most functions that needed
'match_rules'.
While here also make pf_match_rules() static, because it's only ever
used in pf.c
[5 lines not shown]
sysctl(9): Booleans: Fix old value length discovery
When calling sysctl(3) with a null 'oldp', i.e., length discovery mode,
'oldix' can be equal to 'oldlen', and we should not fail.
More generally, let SYSCTL_OUT() and SYSCTL_IN() handle corner cases,
simply removing the comparisons between 'oldidx' and 'oldlen' and
'newidx' and 'newlen' done by hand as the test just after is an equality
that does not require to know if 'idx' is smaller than 'len'.
PR: 292917
Reported by: cy
Fixes: 406da392ef8d ("sysctl(9): Booleans: Accept integers to ease knob conversion")
Sponsored by: The FreeBSD Foundation
lang/python3{12,13}: limit parallel .pyc compilation to MAKE_JOBS
This option is available since python312[0]. This fixes
python312 and python313 builds with qemu-user-static
emulating riscv64.
[0] https://github.com/python/cpython/commit/9a7e9f9921804f3f90151ca42703e612697dd430
Approved by: vishwin (#python), lwhsu (mentor)
Signed-off-by: Siva Mahadevan <siva at FreeBSD.org>
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D54906
net-p2p/{lib,r}torrent: Roll back to 0.16.5
Due to instability of 0.16.6, roll back to 0.16.5 stable.
As a temporary measure as upstream is working on a release fix, let's
roll back with a portrevision bump.
PR: 292914
Reported by: glebius
Reviewed by: glebius, novel
MFH: 2026Q1
See also: https://github.com/rakshasa/rtorrent/issues/1689
(cherry picked from commit 73e88b9f23d4986b5862933ff0d07f9ebf0aeee7)
net-p2p/{lib,r}torrent: Roll back to 0.16.5
Due to instability of 0.16.6, roll back to 0.16.5 stable.
As a temporary measure as upstream is working on a release fix, let's
roll back with a portrevision bump.
PR: 292914
Reported by: glebius
Reviewed by: glebius, novel
MFH: 2026Q1
See also: https://github.com/rakshasa/rtorrent/issues/1689
LinuxKPI: string_choices.h: use ternary operator
Switch from using if () else to a direct return (?:) code.
No functional changes.
Suggested by: kib (D55029)
Sponosred by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: emaste (before removing more () as suggested by him)
Differential Revision: https://reviews.freebsd.org/D55088
devel/libvirt: fix build on 16-CURRENT
As of src commit ac5a19ec6989675c8ec6c3ca245dba243d1a6416 xdrproc_t
accepts only two arguments. Address that change in libvirt.
Reported by: pkg-fallout
Obtained from: upstream
Sponsored by: The FreeBSD Foundation
heimdal: Add missing function prototypes
This fixes the build with GCC 14 on stable/14 which raises fatal
-Wimplicit-function-declaration warnings.
Reviewed by: rmacklem, cy
Fixes: 5000d023a446 ("heimdal-kadmin: Add support for the -f dump option")
Differential Revision: https://reviews.freebsd.org/D54931
(cherry picked from commit 8a8dc73ef87b538c369abc1b642e2a40b52c53c2)