summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libc/netbsd/resolv/res_send.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/netbsd/resolv/res_send.c b/libc/netbsd/resolv/res_send.c
index 72a7ada..f3ee539 100644
--- a/libc/netbsd/resolv/res_send.c
+++ b/libc/netbsd/resolv/res_send.c
@@ -644,6 +644,11 @@ res_nsend(res_state statp,
errno = ETIMEDOUT; /* no answer obtained */
} else
errno = terrno;
+
+#if USE_RESOLV_CACHE
+ _resolv_cache_query_failed(cache, buf, buflen);
+#endif
+
return (-1);
fail:
#if USE_RESOLV_CACHE