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
This commit is contained in:
parent
072a7e6ced
commit
ce5ba8bfcd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user