Skip to content

Commit 897169f

Browse files
committed
Additional CVE-2014-0224 protection.
Return a fatal error if an attempt is made to use a zero length master secret.
1 parent 410a49a commit 897169f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ssl/s3_pkt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,7 @@ int ssl3_do_change_cipher_spec(SSL *s)
13061306

13071307
if (s->s3->tmp.key_block == NULL)
13081308
{
1309-
if (s->session == NULL)
1309+
if (s->session == NULL || s->session->master_key_length == 0)
13101310
{
13111311
/* might happen if dtls1_read_bytes() calls this */
13121312
SSLerr(SSL_F_SSL3_DO_CHANGE_CIPHER_SPEC,SSL_R_CCS_RECEIVED_EARLY);

0 commit comments

Comments
 (0)