Article View: muc.lists.freebsd.bugs
Article #548[Bug 300904] usr.sbin/inetd build without INET6, error uninitialized nbuf2
From: bugzilla-noreply
Date: Thu, 19 Nov 2026 11:36
Date: Thu, 19 Nov 2026 11:36
61 lines
4033 bytes
4033 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300904
Bug ID: 300904
Summary: usr.sbin/inetd build without INET6, error
uninitialized nbuf2
Product: Base System
Version: 14.5-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: dym@afalina.od.ua
Created attachment 277453
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=277453&action=edit
Placing nbuf2 and netid2, along with the associated rpcb_unset()/rpcb_set()
calls, in the #ifdef INET6 blocks in the file usr.sbin/inetd/inetd.c
Building world without IPv6 support (when INET6 is not defined) fails on
FreeBSD 14.5 (this did not occur on 14.4), as well as on 15.1 and 15.2, due to
a new Clang compiler warning (-Wuninitialized-const-pointer) being treated as
an error under -Werror:
------------------------------------
/usr/src/usr.sbin/inetd/inetd.c:1377:44: error: variable 'nbuf2' is
uninitialized when passed as a const p
ointer argument here [-Werror,-Wuninitialized-const-pointer]
1377 | rpcb_set(sep->se_rpc_prog, i, netid2,
&nbuf2);
|
^~~~~
1 warning and 1 error generated.
*** [inetd.pieo] Error code 1
make[4]: stopped making "all" in /usr/src/usr.sbin/inetd
make[4]: 1 error
...
------------------------------------
When INET6 is disabled, nbuf2 is never initialized.
The fix involves separating the definitions of nbuf and nbuf2 in the
usr.sbin/inetd/inetd.c file and moving the definition of nbuf2 into the block
with #ifdef INET6
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<bug-300904-227@https.bugs.freebsd.org/bugzilla/>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail From: bugzilla-noreply@freebsd.org Newsgroups: muc.lists.freebsd.bugs Subject: [Bug 300904] usr.sbin/inetd build without INET6, error uninitialized nbuf2 Date: Thu, 19 Nov 2026 11:36:34 +0000 Organization: Newsgate at muc.de e.V. Approved: news-admin@muc.de Distribution: world Message-ID: <bug-300904-227@https.bugs.freebsd.org/bugzilla/> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="62916"; mail-complaints-to="news-admin@muc.de" X-Original-To: bugs@mlmmj.nyi.freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795088194; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jWfmClsN97FyHbHdRybwNITHZVreLb68u1/Du77/EU4=; b=mf/qaO9S8IjUE9KEYQvWaxy8KcpIDYBX2+G4KBn9Xb4tJHrK+T/YNx2QA4+zCsY6B3UIAf QHAuHZ87nQhVfRFenrPP4Z3tCZQFacqPg7IdHWg0x4JJtCwHoE5azwl/VhjvyJqH8vrXsF 6XHqKUPuNUq7HHigCXQrIs1tbJ9lbStONA/A9eOBBJ/BlWptAW5N2fT2ZSlWAnDqahvzBo v3s11/TcVpd8I1c0A29xVbqpJV0WZ+c2vUd5v829KTf6b5SOmRFwAgXweocQIAxJJM/RfM z02yphBnK6UZeUdkcsenzIRDdSeO64QmTjGDORN7kqdABRSddXG8kPrMeAG70Q== X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Auto-Submitted: auto-generated Precedence: list X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes