cvs: php4 /ext/standard dns.c
| From: | Jani Taskinen | Date: | Thu, 20 Feb 2003 05:34:58 +0000 |
| Subject: | cvs: php4 /ext/standard dns.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-19028@lists.php.net to get a copy of this message | ||
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);
}