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

This commit is contained in:
Giovanni Bajo authored and Simon Kelley committed 2013-08-20 15:41:25 +01:00
1 parent 0304d28f7e
commit b58fb39f24
1 file changed
+9 -2
+9 -2
View File
@@ -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;
} }