mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
libc/netdb: in dns_query_callback, ret != -EADDRNOTAVAIL condition consumes error returns including EAGAIN in this case, dns query retransmission doesn't work
This commit is contained in:
@@ -494,7 +494,7 @@ static int dns_query_callback(FAR void *arg, FAR struct sockaddr *addr,
|
||||
|
||||
nerr("ERROR: IPv4 dns_recv_response failed: %d\n", ret);
|
||||
|
||||
if (ret != -EADDRNOTAVAIL)
|
||||
if (ret == -EADDRNOTAVAIL)
|
||||
{
|
||||
/* The IPv4 address is not available. Return zero to
|
||||
* continue the tranversal with the next nameserver
|
||||
@@ -575,7 +575,7 @@ static int dns_query_callback(FAR void *arg, FAR struct sockaddr *addr,
|
||||
|
||||
nerr("ERROR: IPv6 dns_recv_response failed: %d\n", ret);
|
||||
|
||||
if (ret != -EADDRNOTAVAIL)
|
||||
if (ret == -EADDRNOTAVAIL)
|
||||
{
|
||||
/* The IPv6 address is not available. Return zero to
|
||||
* continue the tranversal with the next nameserver
|
||||
|
||||
Reference in New Issue
Block a user