[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#763500: nslint: Accept _ in TXT entries?



Control: tags -1 + patch

I suspect a patch similar to this might solve it, by allowing _ at the
start for both TXT and SRV records.

diff --git a/nslint.c b/nslint.c
index f298ad1..ef1c9d1 100644
--- a/nslint.c
+++ b/nslint.c
@@ -2762,6 +2762,11 @@ rfc1034host(const char *host, int recs)
                        ++underok;
                        break;
                }
+       /* Allow _ first in SRV and TXT records for Kerberos */
+       if (REC_SRV == recs || REC_TXT == recs)
+               ++underok;
+
+       //fprintf(stderr, "host=%s recs=%x\n", host, recs);
 
        cp = host;
        if (!(isalpha(*cp) || isdigit(*cp) || (*cp == '_' && underok))) {

Is it enough to allow it in TXT?

-- 
Happy hacking
Petter Reinholdtsen


Reply to: