diff --git a/libc/netbsd/gethnamaddr.c b/libc/netbsd/gethnamaddr.c index 04b1f54d8..ee5052e4c 100644 --- a/libc/netbsd/gethnamaddr.c +++ b/libc/netbsd/gethnamaddr.c @@ -753,6 +753,7 @@ gethostbyname_internal(const char *name, int af, res_state res, const char *ifac } proxy = android_open_proxy(); + if (proxy == NULL) goto exit; /* This is writing to system/netd/DnsProxyListener.cpp and changes * here need to be matched there */