aboutsummaryrefslogtreecommitdiffstats
path: root/libc/netbsd/resolv/res_send.c
diff options
context:
space:
mode:
authorHenrik Engström <henrik.engstrom@sonymobile.com>2012-06-20 08:47:52 +0200
committerKenneth Andersson <kenneth.andersson@sonymobile.com>2012-08-17 09:18:47 +0200
commitce5ba8bfcd8ecfb7bfee4412f4f686cecc17e39b (patch)
tree9da96e03431bab909344c3df148ef71ccbe2dd62 /libc/netbsd/resolv/res_send.c
parent072a7e6ced29d9be29e38721d0ab7de0ba3f7377 (diff)
downloadandroid_bionic-ce5ba8bfcd8ecfb7bfee4412f4f686cecc17e39b.tar.gz
android_bionic-ce5ba8bfcd8ecfb7bfee4412f4f686cecc17e39b.tar.bz2
android_bionic-ce5ba8bfcd8ecfb7bfee4412f4f686cecc17e39b.zip
Added missing cache failed notification
Added a missing call to _resolv_cache_query_failed for another fail case where it was missing (it doesn't go through the error handling under the "fail" label). This missing notification caused requests to have to wait for timeout instead of beeing notified on some failed requests. Change-Id: I904d60269c59b926784e3a397d2a860329f55142
Diffstat (limited to 'libc/netbsd/resolv/res_send.c')
-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 72a7ada83..f3ee53979 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