diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-12-26 14:15:51 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-12-27 01:41:39 +0100 |
commit | 598f44bd2c3b6143480358035643b98fcca353ed (patch) | |
tree | 240e4e6a6633727b276a661f18cb80c983138280 /src/resolve/resolved-dns-transaction.c | |
parent | 5a7e41a370e39f68707d3c2ee9cc60d8c0bd33da (diff) |
resolved: make sure we GC stream transactions properly
Make sure to GC a transaction after dealing with a reply, even if the
transaction is not complete yet.
Diffstat (limited to 'src/resolve/resolved-dns-transaction.c')
-rw-r--r-- | src/resolve/resolved-dns-transaction.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-transaction.c b/src/resolve/resolved-dns-transaction.c index 1ea8fa44f7..b0f40303d9 100644 --- a/src/resolve/resolved-dns-transaction.c +++ b/src/resolve/resolved-dns-transaction.c @@ -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; } |