Skip to content

Commit

Permalink
dns/client: return ENOTSUP if no server or not getaddrinfo (#1196)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers authored Oct 13, 2024
1 parent 0032e8e commit 2a9fdae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dns/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ static int query(struct dns_query **qp, struct dnsc *dnsc, uint8_t opcode,
(type == DNS_TYPE_A || type == DNS_TYPE_AAAA);

if (!srv_available && !use_getaddrinfo)
return EINVAL;
return ENOTSUP;

if (DNS_QTYPE_AXFR == type)
proto = IPPROTO_TCP;
Expand Down

0 comments on commit 2a9fdae

Please sign in to comment.