aboutsummaryrefslogtreecommitdiffstats
path: root/libc/netbsd/gethnamaddr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/netbsd/gethnamaddr.c')
-rw-r--r--libc/netbsd/gethnamaddr.c1
1 files changed, 1 insertions, 0 deletions
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 */