diff options
Diffstat (limited to 'lib/libc/net/gethostbydns.c')
-rw-r--r-- | lib/libc/net/gethostbydns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/gethostbydns.c b/lib/libc/net/gethostbydns.c index 82f5152..534073a 100644 --- a/lib/libc/net/gethostbydns.c +++ b/lib/libc/net/gethostbydns.c @@ -591,11 +591,11 @@ _dns_gethostbyname(void *rval, void *cb_data, va_list ap) if (n < 0) { free(buf); dprintf("res_search failed (%d)\n", n); - return (NULL); + return (0); } else if (n > sizeof(buf->buf)) { free(buf); dprintf("static buffer is too small (%d)\n", n); - return (NULL); + return (0); } *(struct hostent **)rval = gethostanswer(buf, n, name, type); free(buf); |