Fix a double free in tls13encryptiontest
authorMatt Caswell <matt@openssl.org>
Tue, 22 Nov 2016 10:12:55 +0000 (10:12 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 29 Nov 2016 23:31:10 +0000 (23:31 +0000)
Reviewed-by: Rich Salz <rsalz@openssl.org>
test/tls13encryptiontest.c

index 5815f85..0e38bda 100644 (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);