From ce5ba8bfcd8ecfb7bfee4412f4f686cecc17e39b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Engstr=C3=B6m?= Date: Wed, 20 Jun 2012 08:47:52 +0200 Subject: [PATCH] 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 --- libc/netbsd/resolv/res_send.c | 5 +++++ 1 file changed, 5 insertions(+) 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