From 33e4b9d9137b5dbb02a087956f1558ef30647aea Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 27 Apr 2024 12:48:31 +0000 Subject: Prepare for 2.3.7.2; implement dns-0x20 Signed-off-by: Laurent Bercot --- src/libs6dns/s6dns_domain_fromstring.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libs6dns/s6dns_domain_fromstring.c') diff --git a/src/libs6dns/s6dns_domain_fromstring.c b/src/libs6dns/s6dns_domain_fromstring.c index b87ee10..c8e553b 100644 --- a/src/libs6dns/s6dns_domain_fromstring.c +++ b/src/libs6dns/s6dns_domain_fromstring.c @@ -2,7 +2,8 @@ #include #include -#include +#include + #include int s6dns_domain_fromstring (s6dns_domain_t *d, char const *s, size_t len) @@ -16,7 +17,7 @@ int s6dns_domain_fromstring (s6dns_domain_t *d, char const *s, size_t len) if (lastdot) { if ((j >= 255) || (lastdot++ >= 64)) return (errno = ENAMETOOLONG, 0) ; - d->s[j++] = s[i] ; + d->s[j++] = tolower(s[i]) ; } if (s[i] == '.') lastdot = 0 ; else if (!lastdot) @@ -25,7 +26,6 @@ int s6dns_domain_fromstring (s6dns_domain_t *d, char const *s, size_t len) lastdot = 1 ; } } - case_lowerb(d->s + 1, j-1) ; d->len = j ; return 1 ; } -- cgit v1.3.1