]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Do not set IDN2_NFC_INPUT explicitly
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)
IDN2_NFC_INPUT is always set implicitly by idn2_to_ascii_lz(), so there
is no need to set it explicitly.

bin/dig/dighost.c

index b31900934b25673158bad9a78a833fb0c8e44219..f5b29002ce2b8244529abc5032db6bb1c350bb4d 100644 (file)
@@ -4254,8 +4254,7 @@ idn_locale_to_ace(const char *src, char *dst, size_t dstlen) {
         * We trust libidn2 to return an error if 'src' is too large to be a
         * valid domain name.
         */
-       res = idn2_to_ascii_lz(src, &ascii_src,
-                              IDN2_NFC_INPUT | IDN2_NONTRANSITIONAL);
+       res = idn2_to_ascii_lz(src, &ascii_src, IDN2_NONTRANSITIONAL);
        if (res != IDN2_OK) {
                fatal("'%s' is not a legal IDNA2008 name (%s), use +noidnin",
                      src, idn2_strerror(res));