cvs: php4(PHP_4_3) /ext/standard dns.c

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

« previous php.cvs (#19029) next »