aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/cmac
diff options
context:
space:
mode:
authorDiego Santa Cruz <Diego.SantaCruz@spinetix.com>2017-05-16 10:35:49 +0200
committerMatt Caswell <matt@openssl.org>2017-06-08 20:59:24 +0100
commit135976b3dd24e674c202c20b5746fc04ebb1fc1a (patch)
tree0460536c5d200a0cdb663647b63a0b17e40d371d /crypto/cmac
parente655f5494100d93307726b23f4718ead0cadc0c3 (diff)
downloadopenssl-135976b3dd24e674c202c20b5746fc04ebb1fc1a.tar.gz
Use memset to clear SRP_CTX instead of NULL and zero assignments
This uses memset() to clear all of the SRP_CTX when free'ing or initializing it as well as in error paths instead of having a series of NULL and zero assignments as it is safer. It also changes SSL_SRP_CTX_init() to reset all the SRP_CTX to zero in case or error, previously it could retain pointers to freed memory, potentially leading to a double free. Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3467)
Diffstat (limited to 'crypto/cmac')
0 files changed, 0 insertions, 0 deletions