resolved: fix DNS_TYPE_ANY vs DNS_CLASS_ANY confusion

Assigning a TPYE enum value to a class variable is certainly wrong.
However, they both have the same value, so the result was correct
nevertheless.
This commit is contained in:
Daniel Mack 2015-07-15 14:37:42 -04:00
parent b83b298102
commit 816b4547da

View file

@ -840,7 +840,7 @@ int dns_class_from_string(const char *s, uint16_t *class) {
if (strcaseeq(s, "IN"))
*class = DNS_CLASS_IN;
else if (strcaseeq(s, "ANY"))
*class = DNS_TYPE_ANY;
*class = DNS_CLASS_ANY;
else
return -EINVAL;