]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix inverted gethostname() check in rndc status
authorOndřej Surý <ondrej@isc.org>
Fri, 17 Apr 2026 14:28:50 +0000 (16:28 +0200)
committerOndřej Surý <ondrej@isc.org>
Fri, 17 Apr 2026 15:51:48 +0000 (17:51 +0200)
commitf7859247df222fa17a0ad52f8ce87816e06984ec
tree65214274b0f90ab82706d0b56d0c9b739532535a
parent6fc2e8d42009cc056c75d7e78151af9346388ccc
Fix inverted gethostname() check in rndc status

When named_os_gethostname() was replaced with raw gethostname(), the
success/failure polarity was flipped: the fallback to "localhost" now
runs on success and the hostname buffer is left uninitialized on
failure.  In the failure path, snprintf() then reads the uninitialized
stack buffer, disclosing stack contents via the rndc status reply.
bin/named/server.c