cvs: php-src(PHP_5_0) /ext/openssl openssl.c
| From: | Ilia Alshanetsky | Date: | Tue, 15 Mar 2005 00:29:36 +0000 |
| Subject: | cvs: php-src(PHP_5_0) /ext/openssl openssl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-30943@lists.php.net to get a copy of this message | ||
iliaa Mon Mar 14 19:29:36 2005 EDT
Modified files: (Branch: PHP_5_0)
/php-src/ext/openssl openssl.c
Log:
MFH: Fixed possible usage of str without being initialized.
http://cvs.php.net/diff.php/php-src/ext/openssl/openssl.c?r1=1.89.2.5&r2=1.89.2.6&ty=u
Index: php-src/ext/openssl/openssl.c
diff -u php-src/ext/openssl/openssl.c:1.89.2.5 php-src/ext/openssl/openssl.c:1.89.2.6
--- php-src/ext/openssl/openssl.c:1.89.2.5 Mon Mar 14 16:00:21 2005
+++ php-src/ext/openssl/openssl.c Mon Mar 14 19:29:36 2005
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: openssl.c,v 1.89.2.5 2005/03/14 21:00:21 sniper Exp $ */
+/* $Id: openssl.c,v 1.89.2.6 2005/03/15 00:29:36 iliaa Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -273,7 +273,9 @@
} else {
zval_dtor(subentries);
FREE_ZVAL(subentries);
- add_assoc_stringl(subitem, sname, str->data, str->length, 1);
+ if (obj_cnt) {
+ add_assoc_stringl(subitem, sname, str->data, str->length, 1);
+ }
}
}
zend_hash_update(HASH_OF(val), key, strlen(key) + 1, (void *)&subitem, sizeof(subitem), NULL);