[Freeswitch-svn] [commit] r4184 - freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv

Freeswitch SVN mikej at freeswitch.org
Fri Feb 9 16:47:30 EST 2007


Author: mikej
Date: Fri Feb  9 16:47:30 2007
New Revision: 4184

Modified:
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c

Log:
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.

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c	Fri Feb  9 16:47:30 2007
@@ -930,8 +930,10 @@
   SU_DEBUG_9(("sres_query(%p, %p, %s, \"%s\") called\n",
 			  (void *)res, (void *)context, sres_record_type(type, b), domain));
 
-  if (res == NULL || domain == NULL)
-    return su_seterrno(EFAULT), (void *)NULL;
+  if (res == NULL || domain == NULL) {
+    su_seterrno(EFAULT);
+	return NULL;
+  }
 
   dlen = strlen(domain);
   if (dlen > SRES_MAXDNAME ||
@@ -943,8 +945,10 @@
   /* Reread resolv.conf if needed */
   sres_resolver_update(res, 0);
 
-  if (res->res_n_servers == 0)
-    return (void)su_seterrno(ENETDOWN), (sres_query_t *)NULL;
+  if (res->res_n_servers == 0) {
+    su_seterrno(ENETDOWN);
+	return NULL;
+  }
 
   query = sres_query_alloc(res, callback, context, type, domain);
 



More information about the Freeswitch-svn mailing list