From 088480faf1228e5f537fdef9c974874567529868 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Sat, 25 Jul 2015 05:12:49 +0200 Subject: resolved: transaction - don't unref server when creating TCP socket This was a bug. --- src/resolve/resolved-dns-transaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resolve/resolved-dns-transaction.c b/src/resolve/resolved-dns-transaction.c index 956c2e9973..a8ff233673 100644 --- a/src/resolve/resolved-dns-transaction.c +++ b/src/resolve/resolved-dns-transaction.c @@ -243,7 +243,7 @@ static int on_stream_complete(DnsStream *s, int error) { } static int dns_transaction_open_tcp(DnsTransaction *t) { - _cleanup_(dns_server_unrefp) DnsServer *server = NULL; + DnsServer *server = NULL; _cleanup_close_ int fd = -1; int r; -- cgit v1.2.3-54-g00ecf