From: Michał Kępień Date: Tue, 10 Jul 2018 12:34:35 +0000 (+0200) Subject: Remove redundant dns_name_settotextfilter() call X-Git-Tag: v9.13.3~124^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9a25368c8c93208c65071b9f50f573cbd3318ecc;p=thirdparty%2Fbind9.git 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(). --- diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index c0ddf8c65ae..3d59b4a80fe 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -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)