]> git.ipfire.org Git - thirdparty/bind9.git/commit
Remove MAKE_EMPTY() macro from dns_name unit
authorOndřej Surý <ondrej@isc.org>
Mon, 24 Feb 2025 12:58:13 +0000 (13:58 +0100)
committerOndřej Surý <ondrej@isc.org>
Tue, 25 Feb 2025 11:17:34 +0000 (12:17 +0100)
commit3bb47bc6cd83b8451cf86a2b4ab5127183dbb42c
tree9559d12b46ef201aa6a559010f51e64078f4ff1f
parent259600c83780da9e01aa46cfb7a0887dee069075
Remove MAKE_EMPTY() macro from dns_name unit

The MAKE_EMPTY() macro was clearing up the output variable in case of
the failure.  However, this was breaking the usual design pattern that
the output variables are left in indeterminate state or we don't touch
them at all when a failure occurs.  Remove the macro and change the
dns_name_downcase() to not touch the name contents until success.
lib/dns/name.c