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:
parent
b83b298102
commit
816b4547da
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue