diff options
author | Henrik Engström <henrik.engstrom@sonymobile.com> | 2012-06-20 08:47:52 +0200 |
---|---|---|
committer | Kenneth Andersson <kenneth.andersson@sonymobile.com> | 2012-08-17 09:18:47 +0200 |
commit | ce5ba8bfcd8ecfb7bfee4412f4f686cecc17e39b (patch) | |
tree | 9da96e03431bab909344c3df148ef71ccbe2dd62 /libc/netbsd | |
parent | 072a7e6ced29d9be29e38721d0ab7de0ba3f7377 (diff) | |
download | bionic-ce5ba8bfcd8ecfb7bfee4412f4f686cecc17e39b.zip bionic-ce5ba8bfcd8ecfb7bfee4412f4f686cecc17e39b.tar.gz bionic-ce5ba8bfcd8ecfb7bfee4412f4f686cecc17e39b.tar.bz2 |
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')
-rw-r--r-- | libc/netbsd/resolv/res_send.c | 5 |
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 |