I don't think this has any real effect, but it was easier for me to read while I was debugging.. will probably revert it later.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4184 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
4a1cbdf81d
commit
be1e4e3995
|
@ -930,8 +930,10 @@ sres_query(sres_resolver_t *res,
|
||||||
SU_DEBUG_9(("sres_query(%p, %p, %s, \"%s\") called\n",
|
SU_DEBUG_9(("sres_query(%p, %p, %s, \"%s\") called\n",
|
||||||
(void *)res, (void *)context, sres_record_type(type, b), domain));
|
(void *)res, (void *)context, sres_record_type(type, b), domain));
|
||||||
|
|
||||||
if (res == NULL || domain == NULL)
|
if (res == NULL || domain == NULL) {
|
||||||
return su_seterrno(EFAULT), (void *)NULL;
|
su_seterrno(EFAULT);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
dlen = strlen(domain);
|
dlen = strlen(domain);
|
||||||
if (dlen > SRES_MAXDNAME ||
|
if (dlen > SRES_MAXDNAME ||
|
||||||
|
@ -943,8 +945,10 @@ sres_query(sres_resolver_t *res,
|
||||||
/* Reread resolv.conf if needed */
|
/* Reread resolv.conf if needed */
|
||||||
sres_resolver_update(res, 0);
|
sres_resolver_update(res, 0);
|
||||||
|
|
||||||
if (res->res_n_servers == 0)
|
if (res->res_n_servers == 0) {
|
||||||
return (void)su_seterrno(ENETDOWN), (sres_query_t *)NULL;
|
su_seterrno(ENETDOWN);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
query = sres_query_alloc(res, callback, context, type, domain);
|
query = sres_query_alloc(res, callback, context, type, domain);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue