Add missing return statement

sres_cached_answers_sockaddr is supposed to return ENOENT if no cached
records are found.  Because of the missing return statement, however,
it would never do this and would instead return something very likely
to be garbage.
This commit is contained in:
Travis Cross committed 2012-06-25 06:38:30 +00:00
1 parent 5077384c5b
commit e6629ab5f6
1 file changed
+1 -1
@@ -1372,7 +1372,7 @@ sres_cached_answers_sockaddr(sres_resolver_t *res,
return NULL;
if (!sres_cache_get(res->res_cache, type, name, &result))
su_seterrno(ENOENT), (void *)NULL;
return su_seterrno(ENOENT), (void *)NULL;
return result;
}