diff options
Diffstat (limited to 'ssl/s2_enc.c')
-rw-r--r-- | ssl/s2_enc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ssl/s2_enc.c b/ssl/s2_enc.c index a28e747d2d..690252e3d3 100644 --- a/ssl/s2_enc.c +++ b/ssl/s2_enc.c @@ -96,7 +96,8 @@ int ssl2_enc_init(SSL *s, int client) num=c->key_len; s->s2->key_material_length=num*2; - ssl2_generate_key_material(s); + if (ssl2_generate_key_material(s) <= 0) + return 0; EVP_EncryptInit_ex(ws,c,NULL,&(s->s2->key_material[(client)?num:0]), s->session->key_arg); |