cvs: /php3/functions dba.c
| From: | Sascha Schumann | Date: | Wed, 21 Jul 1999 15:39:03 +0000 |
| Subject: | cvs: /php3/functions dba.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-8900@lists.php.net to get a copy of this message | ||
sas Wed Jul 21 11:39:03 1999 EDT
Modified files:
/php3/functions dba.c
Log:
This could lead to a crash in the case of a failing
initialization of the driver and if info->hnd had
some trash in it.
Index: php3/functions/dba.c
diff -u php3/functions/dba.c:1.19 php3/functions/dba.c:1.20
--- php3/functions/dba.c:1.19 Fri Jul 2 19:40:57 1999
+++ php3/functions/dba.c Wed Jul 21 11:39:01 1999
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dba.c,v 1.19 1999/07/02 23:40:57 sas Exp $ */
+/* $Id: dba.c,v 1.20 1999/07/21 15:39:01 sas Exp $ */
#include "php.h"
@@ -197,7 +197,7 @@
{
dba_handler *hptr;
- PUTS("V1 ($Id: dba.c,v 1.19 1999/07/02 23:40:57 sas Exp $)");
+ PUTS("V1 ($Id: dba.c,v 1.20 1999/07/21 15:39:01 sas Exp $)");
for(hptr = handler; hptr->name; hptr++) {
PUTS(" ");
PUTS(hptr->name);
@@ -309,6 +309,7 @@
info->mode = modenr;
info->argc = ac - 3;
info->argv = args + 3;
+ info->hnd = NULL;
if(hptr->open(info) != SUCCESS) {
dba_close(info);