From: Ondřej Surý Date: Fri, 17 Apr 2026 15:52:39 +0000 (+0200) Subject: fix: dev: Fix inverted gethostname() check in rndc status X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a8c6a09339dc1e382d06c6f88fe21b0ea8f156c;p=thirdparty%2Fbind9.git fix: dev: Fix inverted gethostname() check in rndc status 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 --- 4a8c6a09339dc1e382d06c6f88fe21b0ea8f156c