summaryrefslogtreecommitdiff
path: root/libc/netbsd/resolv/res_send.c
diff options
context:
space:
mode:
authorRobert Greenwalt <rgreenwalt@google.com>2012-06-12 15:56:29 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-06-12 15:56:29 -0700
commit8f88aa7d3823ac079fc783651a64dbe986a8205e (patch)
treeb035e97c14afeaa3f4264c7d4a5caa9ec14a7156 /libc/netbsd/resolv/res_send.c
parentc2f1d215b1786520fa8c371caa97f062e0bfb513 (diff)
parentc5cab3452d5ced55474e56497594579108670b51 (diff)
am c5cab345: am 028ccf5d: Merge "Avoid multiple dns lookups for the same query"
* commit 'c5cab3452d5ced55474e56497594579108670b51': Avoid multiple dns lookups for the same query
Diffstat (limited to 'libc/netbsd/resolv/res_send.c')
-rw-r--r--libc/netbsd/resolv/res_send.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/netbsd/resolv/res_send.c b/libc/netbsd/resolv/res_send.c
index 53c492f33..72a7ada83 100644
--- a/libc/netbsd/resolv/res_send.c
+++ b/libc/netbsd/resolv/res_send.c
@@ -646,6 +646,9 @@ res_nsend(res_state statp,
errno = terrno;
return (-1);
fail:
+#if USE_RESOLV_CACHE
+ _resolv_cache_query_failed(cache, buf, buflen);
+#endif
res_nclose(statp);
return (-1);
}