Fix a double free in tls13encryptiontest

Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
Matt Caswell 2016-11-22 10:12:55 +00:00
parent 6c67017424
commit d3ab93e9c3

View File

@ -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);