|
|
@@ -1458,7 +1458,7 @@ int ssl3_do_change_cipher_spec(SSL *s) |
|
|
|
|
|
|
|
if (s->s3->tmp.key_block == NULL) |
|
|
|
{ |
|
|
|
if (s->session == NULL) |
|
|
|
if (s->session == NULL || s->session->master_key_length == 0) |
|
|
|
{ |
|
|
|
/* might happen if dtls1_read_bytes() calls this */ |
|
|
|
OPENSSL_PUT_ERROR(SSL, ssl3_do_change_cipher_spec, SSL_R_CCS_RECEIVED_EARLY); |
|
|
|