mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-21 09:10:36 +00:00
Merge "Fix res_search usage"
This commit is contained in:
@@ -254,12 +254,10 @@ static int dns_search_res(const char *dname, int rr_class, int rr_type,
|
|||||||
{
|
{
|
||||||
|
|
||||||
int ret = AST_DNS_SEARCH_FAILURE;
|
int ret = AST_DNS_SEARCH_FAILURE;
|
||||||
struct __res_state dns_state;
|
|
||||||
|
|
||||||
ast_mutex_lock(&res_lock);
|
ast_mutex_lock(&res_lock);
|
||||||
res_init();
|
res_init();
|
||||||
ret = res_search(&dns_state,
|
ret = res_search(dname,
|
||||||
dname,
|
|
||||||
rr_class,
|
rr_class,
|
||||||
rr_type,
|
rr_type,
|
||||||
dns_response,
|
dns_response,
|
||||||
|
|||||||
Reference in New Issue
Block a user