]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove redundant dns_name_settotextfilter() call
authorMichał Kępień <michal@isc.org>
Tue, 10 Jul 2018 12:34:35 +0000 (14:34 +0200)
committerMichał Kępień <michal@isc.org>
Tue, 10 Jul 2018 12:34:35 +0000 (14:34 +0200)
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().

bin/dig/dighost.c

index c0ddf8c65ae3a5f172863189e4f399e3e7505b31..3d59b4a80fe2df90d1f8b6625dacd19419189b17 100644 (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)