sniper Thu Feb 20 00:34:58 2003 EDT Modified files: /php4/ext/standard dns.c Log: - Fixed bug #22299 (gethostbyname() crash with non-existing domain on MacOSX) Index: php4/ext/standard/dns.c diff -u php4/ext/standard/dns.c:1.54 php4/ext/standard/dns.c:1.55 --- php4/ext/standard/dns.c:1.54 Sat Feb 15 22:48:47 2003 +++ php4/ext/standard/dns.c Thu Feb 20 00:34:58 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: dns.c,v 1.54 2003/02/16 03:48:47 wez Exp $ */ +/* $Id: dns.c,v 1.55 2003/02/20 05:34:58 sniper Exp $ */ /* {{{ includes */ #include "php.h" @@ -195,7 +195,7 @@ hp = gethostbyname(name); - if (!hp || !hp->h_addr_list) { + if (!hp || !*(hp->h_addr_list)) { return estrdup(name); }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php