mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 04:31:50 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user