Commit b58fb39f authored by Giovanni Bajo's avatar Giovanni Bajo Committed by Simon Kelley

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

Since extract_name() does not convert to lowercase, do it temporarly within convert_domain_to_wire().
parent 0304d28f
...@@ -424,8 +424,15 @@ static int convert_domain_to_wire(char *name, unsigned char* out) ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment