]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: add new helper for carefully detach a stream from any server
authorLennart Poettering <lennart@poettering.net>
Tue, 4 Dec 2018 21:15:22 +0000 (22:15 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 7 Dec 2018 16:22:59 +0000 (17:22 +0100)
commit808089ae3d96f0e015e323188f0795c3446d3b96
tree9fba029a22f3113b4c573ef6a616d5c3ee908efa
parentd973d94dec349fb676fdd844f6fe2ada3538f27c
resolved: add new helper for carefully detach a stream from any server

This adds a helper call for detaching a DnsServer from a DnsStream if
the latter is the "default" stream of the server.

Also, let's unref the stream in dns_stream_stop() rather than
dns_stream_free(): as soon as our stream is disconnected by stopping
there's really no need to keep it as default stream for the server
around.

Since dns_stream_free() calls dns_stream_stop() we can remove it from
the former.
src/resolve/resolved-dns-stream.c
src/resolve/resolved-dns-stream.h