Skip to content
Snippets Groups Projects
Commit 1ead09dc authored by Joshua Colp's avatar Joshua Colp Committed by Gerrit Code Review
Browse files

Merge "Fix res_search usage"

parents 7bcccd4d 3c1fec80
Branches
Tags
No related merge requests found
......@@ -254,12 +254,10 @@ static int dns_search_res(const char *dname, int rr_class, int rr_type,
{
int ret = AST_DNS_SEARCH_FAILURE;
struct __res_state dns_state;
ast_mutex_lock(&res_lock);
res_init();
ret = res_search(&dns_state,
dname,
ret = res_search(dname,
rr_class,
rr_type,
dns_response,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment