summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-05 04:16:26 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-05 04:17:12 +0200
commit60eb3f7cf1b9c183559ce5c9a21cf2cfd6e6da05 (patch)
tree9289dd5b6f83e50d5636631bd274adc9351a8534
parent13b551acb68695716cb4029531b5dec0759efa53 (diff)
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.
-rw-r--r--src/resolve/resolved-dns-zone.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolved-dns-zone.c b/src/resolve/resolved-dns-zone.c
index 649cc5c73d..04a46745f7 100644
--- a/src/resolve/resolved-dns-zone.c
+++ b/src/resolve/resolved-dns-zone.c
@@ -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;