summaryrefslogtreecommitdiff
path: root/src/resolve
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-12-18 14:26:02 +0100
committerLennart Poettering <lennart@poettering.net>2015-12-18 14:48:49 +0100
commitf4e380379a34d27c9950cb8c91548a798eafe9f3 (patch)
treeeae10b9d08439a1cb211c98f34fb9123b5458656 /src/resolve
parentf7014757fd3be2af31543484f583f5c1484c7b73 (diff)
resolved: when destroying a scope, only abort live transactions
Diffstat (limited to 'src/resolve')
-rw-r--r--src/resolve/resolved-dns-scope.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-scope.c b/src/resolve/resolved-dns-scope.c
index 5bd733a8ff..d0ffc98853 100644
--- a/src/resolve/resolved-dns-scope.c
+++ b/src/resolve/resolved-dns-scope.c
@@ -81,7 +81,8 @@ static void dns_scope_abort_transactions(DnsScope *s) {
* freed while we still look at it */
t->block_gc++;
- dns_transaction_complete(t, DNS_TRANSACTION_ABORTED);
+ if (DNS_TRANSACTION_IS_LIVE(t->state))
+ dns_transaction_complete(t, DNS_TRANSACTION_ABORTED);
t->block_gc--;
dns_transaction_free(t);