resolved: when destroying a scope, only abort live transactions

This commit is contained in:
Lennart Poettering 2015-12-18 14:26:02 +01:00
parent f7014757fd
commit f4e380379a
1 changed files with 2 additions and 1 deletions

View 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);