cvs: php4 /ext/sockets sockets.c

From: Date: Wed, 09 May 2001 04:54:47 +0000
Subject: cvs: php4 /ext/sockets sockets.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-5610@lists.php.net to get a copy of this message
sterling Tue May 8 21:54:47 2001 EDT Modified files: /php4/ext/sockets sockets.c Log: fix crash bug (unlikely, but this is the only place where the reported bug would make sense, and it can't hurt)... Index: php4/ext/sockets/sockets.c diff -u php4/ext/sockets/sockets.c:1.34 php4/ext/sockets/sockets.c:1.35 --- php4/ext/sockets/sockets.c:1.34 Mon Apr 9 20:16:05 2001 +++ php4/ext/sockets/sockets.c Tue May 8 21:54:46 2001 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: sockets.c,v 1.34 2001/04/10 03:16:05 jason Exp $ */ +/* $Id: sockets.c,v 1.35 2001/05/09 04:54:46 sterling Exp $ */ #include "php.h" @@ -1092,6 +1092,10 @@ buf = hstrerror(-(Z_LVAL_PP(error))); } else { buf = strerror(-(Z_LVAL_PP(error))); + } + + if (!buf) { + RETURN_FALSE; } RETURN_STRING((char *)buf, 1);

« previous php.cvs (#5610) next »