Fix a double free in tls1_setup_key_block
authorMatt Caswell <matt@openssl.org>
Thu, 5 May 2016 08:35:10 +0000 (09:35 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 19 May 2016 19:55:55 +0000 (20:55 +0100)
commitec8f246e6ed4d39a8a5417078eaa49f3e757c25d
tree729b07897cf8e19533ea21eaffa24a6ca09cd55e
parentb1d7eaaccfeece198c268912ec015a089fdaed39
Fix a double free in tls1_setup_key_block

If p2 == NULL then p1 can get freed twice and a crash could occur.

Issue reported by Shi Lei (Qihoo 360 Inc)

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
ssl/t1_enc.c