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.
This commit is contained in:
Lennart Poettering 2015-12-25 15:01:37 +01:00
parent fbd5e3526c
commit 0e4fb6b2de
1 changed files with 2 additions and 1 deletions

View File

@ -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;