HomeFreeBSD

inetd: only declare and use the mapped-address netconfig under INET6

Description

inetd: only declare and use the mapped-address netconfig under INET6

In a WITHOUT_INET6 build the only assignment to netid2 is compiled out and
the non-INET6 arm returns early, so netid2 is unconditionally NULL and the
rpcb_set() call guarded by it is dead code. clang does not prove it dead
and reports nbuf2 as uninitialized where it is passed as a const pointer,

No functional change.

MFC after: 1 week
Reported by: clang (-Wuninitialized-const-pointer)
Suggested by: dim
Approved by: ngie (co-mentor)

Reviewed by: ngie
Differential Revision: https://reviews.freebsd.org/D59277

Details

Provenance
seurosAuthored on Aug 31 2026, 6:15 PM
Reviewer
ngie
Differential Revision
D59277: inetd: only declare and use the mapped-address netconfig under INET6
Parents
rGef03c60246be: kern_mib: remove kern.fallback_elf_brand compat sysctl
Branches
Unknown
Tags
Unknown