]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix: dev: Fix inverted gethostname() check in rndc status
authorOndřej Surý <ondrej@isc.org>
Fri, 17 Apr 2026 15:52:39 +0000 (17:52 +0200)
committerOndřej Surý <ondrej@isc.org>
Fri, 17 Apr 2026 15:52:39 +0000 (17:52 +0200)
The replacement of named_os_gethostname() with raw gethostname()
inverted the success check: the "localhost" fallback runs on success,
and on failure the uninitialized hostname buffer is read by snprintf(),
leaking stack memory via the rndc status reply.

Closes #5889

Merge branch '5889-fix-gethostname-inverted-check' into 'main'

See merge request isc-projects/bind9!11879


Trivial merge