diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-01-17 21:53:16 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-01-17 21:53:16 +0100 |
commit | bc7669cff9b7884af28814e3e47f1711315da482 (patch) | |
tree | 26e88354d645e4d8d0ca6fc1e50739f986c40725 /src/resolve/resolved-dns-query.c | |
parent | 43e6779ac2ee8a8a522350eda97311c4f8487ffe (diff) |
resolved: fix logging about DNAME redirection
Diffstat (limited to 'src/resolve/resolved-dns-query.c')
-rw-r--r-- | src/resolve/resolved-dns-query.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolved-dns-query.c b/src/resolve/resolved-dns-query.c index 1948d59fc4..c6da8d0a87 100644 --- a/src/resolve/resolved-dns-query.c +++ b/src/resolve/resolved-dns-query.c @@ -1120,8 +1120,6 @@ static int dns_query_cname_redirect(DnsQuery *q, const DnsResourceRecord *cname) assert(q); - log_debug("Following CNAME %s → %s", dns_question_first_name(q->question), cname->cname.name); - q->n_cname_redirects ++; if (q->n_cname_redirects > CNAME_MAX) return -ELOOP; @@ -1130,6 +1128,8 @@ static int dns_query_cname_redirect(DnsQuery *q, const DnsResourceRecord *cname) if (r < 0) return r; + log_debug("Following CNAME/DNAME %s → %s", dns_question_first_name(q->question), dns_question_first_name(nq)); + dns_question_unref(q->question); q->question = nq; nq = NULL; |