Since extract_name() does not convert to lowercase, do it temporarly within convert_domain_to_wire().

This commit is contained in:
Giovanni Bajo
2012-05-02 03:53:46 +02:00
committed by Simon Kelley
parent 0304d28f7e
commit b58fb39f24

View File

@@ -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;
}