]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: make sure we GC stream transactions properly
authorLennart Poettering <lennart@poettering.net>
Sat, 26 Dec 2015 13:15:51 +0000 (14:15 +0100)
committerLennart Poettering <lennart@poettering.net>
Sun, 27 Dec 2015 00:41:39 +0000 (01:41 +0100)
Make sure to GC a transaction after dealing with a reply, even if the
transaction is not complete yet.

src/resolve/resolved-dns-transaction.c

index 1ea8fa44f7f59cf49a7416544d1db4c1aa7fc903..b0f40303d9121549e4315ae1045ec7ecb8f48679 100644 (file)
@@ -342,6 +342,8 @@ static int on_stream_complete(DnsStream *s, int error) {
         /* If the response wasn't useful, then complete the transition now */
         if (t->state == DNS_TRANSACTION_PENDING)
                 dns_transaction_complete(t, DNS_TRANSACTION_INVALID_REPLY);
+        else
+                dns_transaction_gc(t);
 
         return 0;
 }