summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-dns-stream.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-12-04 19:14:51 +0100
committerLennart Poettering <lennart@poettering.net>2018-12-07 17:16:29 +0100
commit08e254c8184e03eafab1d06703ac0078a044b80f (patch)
tree377873e879efd34e15d5171b2feef4bf238b4f2f /src/resolve/resolved-dns-stream.c
parent898892e825e7a05891a9f8a5616f041958ef4d61 (diff)
downloadsystemd-08e254c8184e03eafab1d06703ac0078a044b80f.tar.gz
resolved: reorder things, to place registration of DnsStream in Manager close to each other
Diffstat (limited to 'src/resolve/resolved-dns-stream.c')
-rw-r--r--src/resolve/resolved-dns-stream.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resolve/resolved-dns-stream.c b/src/resolve/resolved-dns-stream.c
index 5aefb94407..0112e301ac 100644
--- a/src/resolve/resolved-dns-stream.c
+++ b/src/resolve/resolved-dns-stream.c
@@ -497,15 +497,16 @@ int dns_stream_new(Manager *m, DnsStream **ret, DnsProtocol protocol, int fd, co
(void) sd_event_source_set_description(s->timeout_event_source, "dns-stream-timeout");
LIST_PREPEND(streams, m->dns_streams, s);
+ m->n_dns_streams++;
s->manager = m;
+
s->fd = fd;
+
if (tfo_address) {
s->tfo_address = *tfo_address;
s->tfo_salen = tfo_address->sa.sa_family == AF_INET6 ? sizeof(tfo_address->in6) : sizeof(tfo_address->in);
}
- m->n_dns_streams++;
-
*ret = TAKE_PTR(s);
return 0;