mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-19 11:19:34 +00:00
Since extract_name() does not convert to lowercase, do it temporarly within convert_domain_to_wire().
This commit is contained in:
1 parent
0304d28f7e
commit
b58fb39f24
1 file changed
+9
-2
+9
-2
@@ -424,8 +424,15 @@ static int convert_domain_to_wire(char *name, unsigned char* out)
|
||||
if ((len = p-name))
|
||||
{
|
||||
*out++ = len;
|
||||
memcpy(out, name, len);
|
||||
out += len;
|
||||
while (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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user