Commit b7ffd596 authored by Simon Morlat's avatar Simon Morlat
Browse files

fix bug while attempting to resolve when no DNS servers are available.

parent 96560b40
......@@ -229,8 +229,13 @@ static struct dns_resolv_conf *resconf(belle_sip_simple_resolver_context_t *ctx)
if (ns_addr->sa_family==AF_INET6) using_ipv6=TRUE;
}
ctx->resconf->iface.ss_family=using_ipv6 ? AF_INET6 : AF_INET;
if (i==0) {
belle_sip_error("- no DNS servers available - resolution aborted.");
return NULL;
}
}else{
belle_sip_error("Error loading dns server addresses.");
return NULL;
}
return ctx->resconf;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment