@ -922,6 +922,7 @@ dns_enqueue(const char *name, dns_found_callback found, void *callback_arg)
* name is already in the local names table .
* - ERR_INPROGRESS enqueue a request to be sent to the DNS server
* for resolution if no errors are present .
* - ERR_ARG : dns client not initialized or invalid hostname
*
* @ param hostname the hostname that is to be queried
* @ param addr pointer to a ip_addr_t where to store the address if it is already
@ -941,7 +942,7 @@ dns_gethostbyname(const char *hostname, ip_addr_t *addr, dns_found_callback foun
if ( ( dns_pcb = = NULL ) | | ( addr = = NULL ) | |
( ! hostname ) | | ( ! hostname [ 0 ] ) | |
( strlen ( hostname ) > = DNS_MAX_NAME_LENGTH ) ) {
return ERR_VAL ;
return ERR_ARG ;
}
# if LWIP_HAVE_LOOPIF