rely on final return NULL

This commit is contained in:
Aaron Lipinski 2019-07-29 08:08:51 +12:00
parent fab26eacaf
commit c938dc7725

View File

@ -276,8 +276,6 @@ char *dns_lookup2(
/* we've got a result. */
if (r->name)
return r->name;
else
return NULL;
} else {
r = xmalloc(sizeof(struct dns_results));
memcpy(&r->ip, ip, sizeof(r->ip));