summaryrefslogtreecommitdiff
path: root/ext/openssl/openssl.c
diff options
context:
space:
mode:
authorHenrique do Nascimento Angelo <hnangelo@php.net>2008-07-15 03:04:26 +0000
committerHenrique do Nascimento Angelo <hnangelo@php.net>2008-07-15 03:04:26 +0000
commit1ad5a03d8f372b490ca0037dc485630862a4452f (patch)
treeddc8ef75a0ac39b41cbdd91f2305bb3fd9be1bc5 /ext/openssl/openssl.c
parentf385e69fdbbba1a71ff29ae7643c0eec4f72ec0c (diff)
downloadphp-git-1ad5a03d8f372b490ca0037dc485630862a4452f.tar.gz
Fix uninitilized variables in openssl_pkcs7_encrypt() and openssl_pkcs7_sign()
Diffstat (limited to 'ext/openssl/openssl.c')
-rw-r--r--ext/openssl/openssl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
index e1f4bb56de..0139a5e3f9 100644
--- a/ext/openssl/openssl.c
+++ b/ext/openssl/openssl.c
@@ -3513,6 +3513,7 @@ PHP_FUNCTION(openssl_pkcs7_encrypt)
if (zheaders) {
zend_hash_internal_pointer_reset_ex(HASH_OF(zheaders), &hpos);
while(zend_hash_get_current_data_ex(HASH_OF(zheaders), (void**)&zcertval, &hpos) == SUCCESS) {
+ strindex.s = NULL;
zend_hash_get_current_key_ex(HASH_OF(zheaders), &strindex, &strindexlen, &intindex, 0, &hpos);
convert_to_string_ex(zcertval);
@@ -3622,6 +3623,7 @@ PHP_FUNCTION(openssl_pkcs7_sign)
if (zheaders) {
zend_hash_internal_pointer_reset_ex(HASH_OF(zheaders), &hpos);
while(zend_hash_get_current_data_ex(HASH_OF(zheaders), (void**)&hval, &hpos) == SUCCESS) {
+ strindex.s = NULL;
zend_hash_get_current_key_ex(HASH_OF(zheaders), &strindex, &strindexlen, &intindex, 0, &hpos);
convert_to_string_ex(hval);