summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-bus.c
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-09-16 17:59:11 +0200
committerDaniel Mack <github@zonque.org>2015-09-16 17:59:11 +0200
commit7ed1f63d506f8023db57e496519c7ef63820762e (patch)
tree99ef11732f301e00ac213d58a91690dd4f9b66f8 /src/resolve/resolved-bus.c
parentb91a501fcd618a7f7a34e64cec9f74394fb0bad8 (diff)
parent5eefe544efbfbbd0d0026ca28913a9e82fec187c (diff)
Merge pull request #1279 from teg/resolved-cname-cache
resolevd: cache - improve CNAME handling
Diffstat (limited to 'src/resolve/resolved-bus.c')
-rw-r--r--src/resolve/resolved-bus.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/resolve/resolved-bus.c b/src/resolve/resolved-bus.c
index 12c17003e9..bf1b7c8ab4 100644
--- a/src/resolve/resolved-bus.c
+++ b/src/resolve/resolved-bus.c
@@ -191,7 +191,7 @@ static void bus_method_resolve_hostname_complete(DnsQuery *q) {
/* This has a cname? Then update the query with the
* new cname. */
- r = dns_query_cname_redirect(q, cname->cname.name);
+ r = dns_query_cname_redirect(q, cname);
if (r < 0) {
if (r == -ELOOP)
r = sd_bus_reply_method_errorf(q->request, BUS_ERROR_CNAME_LOOP, "CNAME loop on '%s'", q->request_hostname);
@@ -220,8 +220,6 @@ static void bus_method_resolve_hostname_complete(DnsQuery *q) {
added++;
}
- // what about the cache?
-
/* If we didn't find anything, then let's restart the
* query, this time with the cname */
if (added <= 0) {