[exim-cvs] Permit underbar in dns name component; needed for…

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] Permit underbar in dns name component; needed for srv, csa, dane...
Gitweb: http://git.exim.org/exim.git/commitdiff/37bf366ed1fe8b579a2800b3593bc76294b3ecf2
Commit:     37bf366ed1fe8b579a2800b3593bc76294b3ecf2
Parent:     f923454af54f2638fe7f2f7e53a441cdd94d7e56
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Sat Apr 11 17:40:37 2015 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Sun Apr 12 23:36:49 2015 +0100


    Permit underbar in dns name component; needed for srv, csa, dane...
---
 src/src/dns.c  |    2 +-
 src/src/utf8.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/src/src/dns.c b/src/src/dns.c
index f1619f4..6f75386 100644
--- a/src/src/dns.c
+++ b/src/src/dns.c
@@ -584,7 +584,7 @@ if (previous != NULL)
   if ((alabel = string_domain_utf8_to_alabel(name, &errstr)), errstr)
     {
     DEBUG(D_dns)
-      debug_printf("DNS name '%s' utf8 conversion to alabel failed: %s", name,
+      debug_printf("DNS name '%s' utf8 conversion to alabel failed: %s\n", name,
         errstr);
     host_find_failed_syntax = TRUE;
     return DNS_NOMATCH;
diff --git a/src/src/utf8.c b/src/src/utf8.c
index 611bff0..6d0c502 100644
--- a/src/src/utf8.c
+++ b/src/src/utf8.c
@@ -33,7 +33,7 @@ uschar * s;
 int rc;


 s = US stringprep_utf8_nfkc_normalize(CCS utf8, -1);
-if (  (rc = idna_to_ascii_8z(CCS s, CSS &s1, IDNA_USE_STD3_ASCII_RULES))
+if (  (rc = idna_to_ascii_8z(CCS s, CSS &s1, IDNA_ALLOW_UNASSIGNED))
    != IDNA_SUCCESS)
   {
   free(s);