mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Since extract_name() does not convert to lowercase, do it temporarly within convert_domain_to_wire().
This commit is contained in:
committed by
Simon Kelley
parent
0304d28f7e
commit
b58fb39f24
11
src/dnssec.c
11
src/dnssec.c
@@ -424,8 +424,15 @@ static int convert_domain_to_wire(char *name, unsigned char* out)
|
|||||||
if ((len = p-name))
|
if ((len = p-name))
|
||||||
{
|
{
|
||||||
*out++ = len;
|
*out++ = len;
|
||||||
memcpy(out, name, len);
|
while (len--)
|
||||||
out += len;
|
{
|
||||||
|
char ch = *name++;
|
||||||
|
/* TODO: this will not be required anymore once we
|
||||||
|
remove all usages of extract_name() from DNSSEC code */
|
||||||
|
if (ch >= 'A' && ch <= 'Z')
|
||||||
|
ch = ch - 'A' + 'a';
|
||||||
|
*out++ = ch;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
name = p+1;
|
name = p+1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user