[Asterisk-cvs] asterisk utils.c,1.2,1.3

markster at lists.digium.com markster at lists.digium.com
Thu May 13 17:43:39 CDT 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv6524

Modified Files:
	utils.c 
Log Message:
Really fix ast_gethostbyname


Index: utils.c
===================================================================
RCS file: /usr/cvsroot/asterisk/utils.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- utils.c	11 May 2004 18:41:09 -0000	1.2
+++ utils.c	13 May 2004 21:54:30 -0000	1.3
@@ -137,7 +137,7 @@
 		return NULL;
 	res = gethostbyname_r(host, &hp->hp, hp->buf, sizeof(hp->buf), &result, &herrno);
 
-	if (res || !hp->hp.h_addr_list || !hp->hp.h_addr_list[0])
+	if (res || !result || !hp->hp.h_addr_list || !hp->hp.h_addr_list[0])
 		return NULL;
 	return &hp->hp;
 }




More information about the svn-commits mailing list