Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1198099

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

From Petter Reinholdtsen <pere@hungry.com>
Newsgroups linux.debian.bugs.dist
Subject Bug#763500: nslint: Accept _ in TXT entries?
Date 2024-05-20 22:20 +0200
Message-ID <IGhEd-eHpz-5@gated-at.bofh.it> (permalink)
References (2 earlier) <o9XSF-6XH-17@gated-at.bofh.it> <o9YYp-lM-3@gated-at.bofh.it> <tWbIl-39U-1@gated-at.bofh.it> <o65Yv-1GK-33@gated-at.bofh.it> <tWbIl-39U-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#763500: nslint: Accept _ in TXT entries? Petter Reinholdtsen <pere@hungry.com> - 2024-05-20 22:20 +0200

csiph-web