1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-28 20:25:25 +03:00

resolved: don't override zone item state after starting the probe

After all, the probe might be finished immeidately (due to resources,
...), and we shouldn't then set the state back to probing.
This commit is contained in:
Lennart Poettering 2014-08-05 04:16:26 +02:00
parent 13b551acb6
commit 60eb3f7cf1

View File

@ -279,14 +279,14 @@ int dns_zone_put(DnsZone *z, DnsScope *s, DnsResourceRecord *rr, bool probe) {
if (established)
i->state = DNS_ZONE_ITEM_ESTABLISHED;
else {
i->state = DNS_ZONE_ITEM_PROBING;
r = dns_zone_item_probe_start(i);
if (r < 0) {
dns_zone_item_remove_and_free(z, i);
i = NULL;
return r;
}
i->state = DNS_ZONE_ITEM_PROBING;
}
} else
i->state = DNS_ZONE_ITEM_ESTABLISHED;