diff options
author | Sara Golemon <pollita@php.net> | 2017-01-30 08:57:17 -0800 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2017-01-30 08:57:17 -0800 |
commit | bf0f53270f3deaf53b887fbd90971d9789dc9311 (patch) | |
tree | fc9b5f886afa99ee6ffb626e83563f3d43130ad2 | |
parent | 368958b3e4ad341da02c901bfd58296d55d91605 (diff) | |
download | php-git-bf0f53270f3deaf53b887fbd90971d9789dc9311.tar.gz |
Securely zero the hash context key
-rw-r--r-- | ext/hash/hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/hash/hash.c b/ext/hash/hash.c index 0b05d28ad2..59d2fbfb78 100644 --- a/ext/hash/hash.c +++ b/ext/hash/hash.c @@ -783,7 +783,7 @@ static void php_hash_dtor(zend_resource *rsrc) /* {{{ */ } if (hash->key) { - memset(hash->key, 0, hash->ops->block_size); + ZEND_SECURE_ZERO(hash->key, hash->ops->block_size); efree(hash->key); } efree(hash); |