Closed scubachristopher closed 3 years ago
@scubachristopher it looks like LwIP is invoking the callback with ip_addr_t *ip == NULL, and you are dereferencing the NULL pointer in dnsCallback. According to LwIP API reference, this argument is a "pointer to an ip_addr_t containing the IP address of the hostname, or NULL if the name could not be found (or on any other error)".
Ahh -- makes sense. Thanks
Hi,
Providing a bad domain name creates a core panic on ESP32. Here is an arduino sketch that demonstrates the issue:
OUTPUT:
I've never seen the delay loop iterate more than 7 seconds, but I see panic's after 1, 2 seconds. It never returns anything other than ERR_INPROGRESS.
Thanks for looking into this!