[Asterisk-cvs] asterisk asterisk.c,1.83,1.84
markster at lists.digium.com
markster at lists.digium.com
Fri May 7 16:09:46 CDT 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv17825
Modified Files:
asterisk.c
Log Message:
Check h_addr_list, too
Index: asterisk.c
===================================================================
RCS file: /usr/cvsroot/asterisk/asterisk.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- asterisk.c 7 May 2004 20:15:45 -0000 1.83
+++ asterisk.c 7 May 2004 20:18:55 -0000 1.84
@@ -1851,7 +1851,7 @@
res = gethostbyname_r(host, &hp->hp, hp->buf, sizeof(hp->buf), &result, &herrno);
- if (res || !hp->hp.h_addr)
+ if (res || !hp->hp.h_addr_list || !hp->hp.h_addr_list[0])
return NULL;
return &hp->hp;
}
More information about the svn-commits
mailing list