From: Lennart Poettering Date: Fri, 18 Dec 2015 13:26:02 +0000 (+0100) Subject: resolved: when destroying a scope, only abort live transactions X-Git-Tag: v229~201^2~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4e380379a34d27c9950cb8c91548a798eafe9f3;p=thirdparty%2Fsystemd.git resolved: when destroying a scope, only abort live transactions --- diff --git a/src/resolve/resolved-dns-scope.c b/src/resolve/resolved-dns-scope.c index 5bd733a8ff3..d0ffc98853f 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);