]> git.ipfire.org Git - thirdparty/bind9.git/commit
avoid the 'target' buffer in dns_name_fromtext()
authorEvan Hunt <each@isc.org>
Fri, 21 Feb 2025 21:36:57 +0000 (13:36 -0800)
committerEvan Hunt <each@isc.org>
Tue, 25 Feb 2025 20:53:25 +0000 (12:53 -0800)
commitcf098cf10db653acb2ac78b20d5524c104881fac
tree1f4c13313aeddb71b76cb80bb518844198420172
parenta6986f6837e8d50b433185bec1c0dc8c4db621c6
avoid the 'target' buffer in dns_name_fromtext()

dns_name_fromtext() stores the converted name in the 'name'
passed to it, and optionally also copies it in wire format to
a buffer 'target'. this makes the interface unnecessarily
complex, and could be simplified by having a different function
for each purpose. as a first step, remove uses of the target
buffer in calls to dns_name_fromtext() where it wasn't actually
needed.
bin/dig/dighost.c
bin/named/transportconf.c
bin/named/tsigconf.c
bin/nsupdate/nsupdate.c
tests/dns/dispatch_test.c
tests/dns/master_test.c