summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-12-25 15:01:37 +0100
committerLennart Poettering <lennart@poettering.net>2015-12-26 19:09:10 +0100
commit0e4fb6b2dedf590741220b806c92e9e68857b457 (patch)
treeee9654876298193d5f8bd599e78009b5a99c5732
parentfbd5e3526cbf5dd956d6cb8996f257e63183eb81 (diff)
resolved: no need to store return value of dns_server_possible_features()
The call already updates possible_features, it's pointless doing this in the caller a second time.
-rw-r--r--src/resolve/resolved-dns-scope.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-scope.c b/src/resolve/resolved-dns-scope.c
index b284cb8b27..a4df9b010a 100644
--- a/src/resolve/resolved-dns-scope.c
+++ b/src/resolve/resolved-dns-scope.c
@@ -320,7 +320,8 @@ static int dns_scope_socket(DnsScope *s, int type, int family, const union in_ad
if (!srv)
return -ESRCH;
- srv->possible_features = dns_server_possible_features(srv);
+ /* Determine current feature level to use */
+ (void) dns_server_possible_features(srv);
if (type == SOCK_DGRAM && srv->possible_features < DNS_SERVER_FEATURE_LEVEL_UDP)
return -EAGAIN;