Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1198099 > unrolled thread
| Started by | Petter Reinholdtsen <pere@hungry.com> |
|---|---|
| First post | 2024-05-20 22:20 +0200 |
| Last post | 2024-05-20 22:20 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.debian.bugs.dist
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Bug#763500: nslint: Accept _ in TXT entries? Petter Reinholdtsen <pere@hungry.com> - 2024-05-20 22:20 +0200
| From | Petter Reinholdtsen <pere@hungry.com> |
|---|---|
| Date | 2024-05-20 22:20 +0200 |
| Subject | Bug#763500: nslint: Accept _ in TXT entries? |
| Message-ID | <IGhEd-eHpz-5@gated-at.bofh.it> |
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 top | Article view | linux.debian.bugs.dist
csiph-web