2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

Remove redundant dns_name_settotextfilter() call

There is no need to call dns_name_settotextfilter() in setup_system()
because setup_lookup() determines whether IDN output processing should
be enabled for a specific lookup (taking the global setting into
consideration) and calls dns_name_settotextfilter() anyway if it is.
Remove the dns_name_settotextfilter() call from setup_system().
This commit is contained in:
Michał Kępień
2018-07-10 14:34:35 +02:00
parent fafc7c7b8a
commit 9a25368c8c

View File

@@ -1290,12 +1290,6 @@ setup_system(isc_boolean_t ipv4only, isc_boolean_t ipv6only) {
(void)setlocale(LC_ALL, "");
#endif
#ifdef HAVE_LIBIDN2
/* Set domain name -> text post-conversion filter. */
result = dns_name_settotextfilter(output_filter);
check_result(result, "dns_name_settotextfilter");
#endif /* HAVE_LIBIDN2 */
if (keyfile[0] != 0)
setup_file_key();
else if (keysecret[0] != 0)