sniper          Thu Feb 20 00:35:19 2003 EDT

  Modified files:              (Branch: PHP_4_3)
    /php4/ext/standard  dns.c 
  Log:
  MFH: - 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.44.2.2 php4/ext/standard/dns.c:1.44.2.3
--- php4/ext/standard/dns.c:1.44.2.2    Tue Dec 31 11:35:26 2002
+++ php4/ext/standard/dns.c     Thu Feb 20 00:35:18 2003
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: dns.c,v 1.44.2.2 2002/12/31 16:35:26 sebastian Exp $ */
+/* $Id: dns.c,v 1.44.2.3 2003/02/20 05:35:18 sniper Exp $ */
 
 /* {{{ includes
  */
@@ -197,7 +197,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

Reply via email to