mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
resolved: when destroying a scope, only abort live transactions
This commit is contained in:
parent
f7014757fd
commit
f4e380379a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user