From: Ondřej Surý Date: Fri, 17 Apr 2026 16:46:49 +0000 (+0200) Subject: [9.18] fix: dev: Fix inverted gethostname() check in rndc status X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c874e39a237926a45529361736f1ec87cc3ac3de;p=thirdparty%2Fbind9.git [9.18] 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 Backport of MR !11879 Merge branch 'backport-5889-fix-gethostname-inverted-check-9.18' into 'bind-9.18' See merge request isc-projects/bind9!11883 --- c874e39a237926a45529361736f1ec87cc3ac3de