]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/resolve/resolved-dns-query.c
resolved: remove duplicate handling of "no servers" query result
authorLennart Poettering <lennart@poettering.net>
Mon, 24 Aug 2015 21:44:33 +0000 (23:44 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 24 Aug 2015 21:44:33 +0000 (23:44 +0200)
commitd634711b261dc72bb48765e8574ba43d455e82ec
treef3a9542a7aaf42b54901eb9ab1bbf50d2f1fd916
parentda0c630e141e3c3fab633a1c7a0686295e2c9411
resolved: remove duplicate handling of "no servers" query result

So far we handled immediate "no server" query results differently from
"no server" results we ran into during operation: the former would cause
the dns_query_go() call to fail with ESRCH, the later would result in
the query completion callback to be called.

Remove the duplicate codepaths, by always going through the completion
callback. This allows us to remove quite a number of lines for handling
the ESRCH.

This commit should not alter behaviour at all.
src/resolve/resolved-bus.c
src/resolve/resolved-dns-query.c