]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: cast dns_scope_get_dns_server() to NULL when we ignore it
authorLennart Poettering <lennart@poettering.net>
Fri, 8 Dec 2017 18:50:51 +0000 (19:50 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Dec 2017 11:10:08 +0000 (12:10 +0100)
src/resolve/resolved-dns-transaction.c

index e930dd9c93b487cac5d1cfc89007dc9a1badc128..0388b5e07695f56dd749cd471d6c442a9bcb9556 100644 (file)
@@ -1362,7 +1362,7 @@ static int dns_transaction_prepare(DnsTransaction *t, usec_t ts) {
                 /* Before trying the cache, let's make sure we figured out a
                  * server to use. Should this cause a change of server this
                  * might flush the cache. */
-                dns_scope_get_dns_server(t->scope);
+                (void) dns_scope_get_dns_server(t->scope);
 
                 /* Let's then prune all outdated entries */
                 dns_cache_prune(&t->scope->cache);