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:
parent
fbd5e3526c
commit
0e4fb6b2de
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue