summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-07-15 14:37:42 -0400
committerDaniel Mack <daniel@zonque.org>2015-07-24 19:54:00 +0200
commit816b4547dac1b052239ad6ee3801c78c691e5cb4 (patch)
tree2add109648fd28fafa965d6600006340d6856ef4 /src
parentb83b298102e1abd03565052cb2bc60234e09b692 (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')
-rw-r--r--src/resolve/resolved-dns-rr.c2
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;