summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2017-01-30 08:57:17 -0800
committerSara Golemon <pollita@php.net>2017-01-30 08:57:17 -0800
commitbf0f53270f3deaf53b887fbd90971d9789dc9311 (patch)
treefc9b5f886afa99ee6ffb626e83563f3d43130ad2
parent368958b3e4ad341da02c901bfd58296d55d91605 (diff)
downloadphp-git-bf0f53270f3deaf53b887fbd90971d9789dc9311.tar.gz
Securely zero the hash context key
-rw-r--r--ext/hash/hash.c2
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);