1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 06:52:22 +03:00

resolved: use dns_query_reset_answer() where we can

This commit is contained in:
Lennart Poettering 2016-01-22 17:34:10 +01:00
parent b8b143c5ff
commit ab88b6d087

View File

@ -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,