diff options
author | Daniel Mack <daniel@zonque.org> | 2015-07-15 14:37:42 -0400 |
---|---|---|
committer | Daniel Mack <daniel@zonque.org> | 2015-07-24 19:54:00 +0200 |
commit | 816b4547dac1b052239ad6ee3801c78c691e5cb4 (patch) | |
tree | 2add109648fd28fafa965d6600006340d6856ef4 /src/resolve | |
parent | b83b298102e1abd03565052cb2bc60234e09b692 (diff) |
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.
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/resolved-dns-rr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-rr.c b/src/resolve/resolved-dns-rr.c index 2bc9f2b520..ad7ca26cfe 100644 --- a/src/resolve/resolved-dns-rr.c +++ b/src/resolve/resolved-dns-rr.c @@ -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; |