]> git.ipfire.org Git - thirdparty/bind9.git/commit
dig: setup IDN whenever printing a message
authorEvan Hunt <each@isc.org>
Sat, 12 Sep 2020 20:23:52 +0000 (13:23 -0700)
committerOndřej Surý <ondrej@sury.org>
Sat, 7 Nov 2020 19:49:53 +0000 (20:49 +0100)
commite12dc1faa24322ea9da31b72c9f33a48a4d3a440
treedd7000f6e01d0b5bee2e77ca803299c640ce317c
parentcde27d2d2b540937dc565c0a0e9dd24cc3fc5713
dig: setup IDN whenever printing a message

because dig now uses the netmgr, printing of response messages
happens in a different thread than setup. the IDN output filtering
procedure, which set using dns_name_settotextfilter(), is stored as
thread-local data, and so if it's set during setup, it won't be
accessible when printing. we now set it immediately before printing,
in the same thread, and clear it immedately afterward.
bin/dig/dig.c
bin/dig/dighost.c
bin/dig/dighost.h