iliaa Mon Mar 14 19:27:52 2005 EDT Modified files: /php-src/ext/openssl openssl.c Log: Fixed possible usage of str without being initialized. http://cvs.php.net/diff.php/php-src/ext/openssl/openssl.c?r1=1.94&r2=1.95&ty=u Index: php-src/ext/openssl/openssl.c diff -u php-src/ext/openssl/openssl.c:1.94 php-src/ext/openssl/openssl.c:1.95 --- php-src/ext/openssl/openssl.c:1.94 Mon Mar 14 16:00:02 2005 +++ php-src/ext/openssl/openssl.c Mon Mar 14 19:27:51 2005 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: openssl.c,v 1.94 2005/03/14 21:00:02 sniper Exp $ */ +/* $Id: openssl.c,v 1.95 2005/03/15 00:27:51 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);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php