diff options
Diffstat (limited to 'resolv')
-rw-r--r-- | resolv/res_comp.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |