diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-01-22 17:34:10 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-01-25 17:19:20 +0100 |
commit | ab88b6d087c89fb052cedc6f145339fd24c1138e (patch) | |
tree | dcf63a54e5d4041ba3be5fe1685ca57905d41143 /src/resolve/resolved-dns-query.c | |
parent | b8b143c5ff6f8dd91297f961553a3c24f0694ae9 (diff) |
resolved: use dns_query_reset_answer() where we can
Diffstat (limited to 'src/resolve/resolved-dns-query.c')
-rw-r--r-- | src/resolve/resolved-dns-query.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/resolve/resolved-dns-query.c b/src/resolve/resolved-dns-query.c index 11179d1926..ef977b0948 100644 --- a/src/resolve/resolved-dns-query.c +++ b/src/resolve/resolved-dns-query.c @@ -703,10 +703,7 @@ int dns_query_go(DnsQuery *q) { goto fail; } - q->answer = dns_answer_unref(q->answer); - q->answer_rcode = 0; - q->answer_family = AF_UNSPEC; - q->answer_protocol = _DNS_PROTOCOL_INVALID; + dns_query_reset_answer(q); r = sd_event_add_time( q->manager->event, |