mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 20:50:41 +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:
parent
5077384c5b
commit
e6629ab5f6
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user