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 5815f851935570ae92e91d48b58d770705053e8f..0e38bdad4a5b6e44324e7bbc1950e20cad7d8388 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);