diff options
author | Tom Gundersen <teg@jklm.no> | 2016-01-18 23:10:53 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2016-01-18 23:10:53 +0100 |
commit | 6228dc518f13f189a68144ab46bf055469615e3b (patch) | |
tree | b3c826afd4175dcb9408efacff8e8758961e1eee /src/resolve/resolved-dns-query.c | |
parent | 7a9216397487977f4743afa52004d82c174dab10 (diff) | |
parent | bc7669cff9b7884af28814e3e47f1711315da482 (diff) |
Merge pull request #2326 from poettering/dnssec15
Fifteenth batch of DNSSEC patches
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; |