From: Matt Caswell Date: Tue, 22 Nov 2016 10:12:55 +0000 (+0000) Subject: Fix a double free in tls13encryptiontest X-Git-Tag: OpenSSL_1_1_1-pre1~2954 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d3ab93e9c372c98c4ee3bcf8bc3c406a19e62f95;p=oweals%2Fopenssl.git Fix a double free in tls13encryptiontest Reviewed-by: Rich Salz --- diff --git a/test/tls13encryptiontest.c b/test/tls13encryptiontest.c index 5815f85193..0e38bdad4a 100644 --- a/test/tls13encryptiontest.c +++ b/test/tls13encryptiontest.c @@ -157,6 +157,7 @@ static int load_record(SSL3_RECORD *rec, size_t recnum, unsigned char **key, return 1; err: OPENSSL_free(*key); + *key = NULL; OPENSSL_free(ivtmp); OPENSSL_free(sq); OPENSSL_free(pt);