]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: when destroying a scope, only abort live transactions
authorLennart Poettering <lennart@poettering.net>
Fri, 18 Dec 2015 13:26:02 +0000 (14:26 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 18 Dec 2015 13:48:49 +0000 (14:48 +0100)
src/resolve/resolved-dns-scope.c

index 5bd733a8ff36191a91d5ba1420b649386a244101..d0ffc98853ff845617f2a6c2411fa6e5e925dbf6 100644 (file)
@@ -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);