Don't do the debug printout if ipaddr is NULL

This commit is contained in:
Adam Dunkels 2014-12-02 11:06:22 +01:00
parent 990682229c
commit d21835a61f

View file

@ -1380,7 +1380,8 @@ resolv_lookup(const char *name, uip_ipaddr_t ** ipaddr)
#if VERBOSE_DEBUG
switch (ret) {
case RESOLV_STATUS_CACHED:{
case RESOLV_STATUS_CACHED:
if(ipaddr) {
PRINTF("resolver: Found \"%s\" in cache.\n", name);
const uip_ipaddr_t *addr = *ipaddr;