From f27df65bde2ae1c85ec96821d062469714f4bd9e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 2 Apr 1998 16:12:29 +0000 Subject: [PATCH] (underscorechar): New. (middlechar): Allow '_'. --- resolv/res_comp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resolv/res_comp.c b/resolv/res_comp.c index ed4bcdc58f..94a6270b6e 100644 --- a/resolv/res_comp.c +++ b/resolv/res_comp.c @@ -354,6 +354,7 @@ dn_find(exp_dn, msg, dnptrs, lastdnptr) */ #define PERIOD 0x2e #define hyphenchar(c) ((c) == 0x2d) +#define underscorechar(c) ((c) == 0x5f) #define bslashchar(c) ((c) == 0x5c) #define periodchar(c) ((c) == PERIOD) #define asterchar(c) ((c) == 0x2a) @@ -362,7 +363,7 @@ dn_find(exp_dn, msg, dnptrs, lastdnptr) #define digitchar(c) ((c) >= 0x30 && (c) <= 0x39) #define borderchar(c) (alphachar(c) || digitchar(c)) -#define middlechar(c) (borderchar(c) || hyphenchar(c)) +#define middlechar(c) (borderchar(c) || hyphenchar(c) || underscorechar(c)) #define domainchar(c) ((c) > 0x20 && (c) < 0x7f) int -- 2.11.4.GIT