Index: openssl/ssl/s3_enc.c |
diff --git a/openssl/ssl/s3_enc.c b/openssl/ssl/s3_enc.c |
index e3cd4f062c5a53cabaeac6e0d11924246b393288..191b86b7b2a1975af3e06012a51054f859869f36 100644 |
--- a/openssl/ssl/s3_enc.c |
+++ b/openssl/ssl/s3_enc.c |
@@ -397,7 +397,13 @@ int ssl3_setup_key_block(SSL *s) |
if (s->s3->tmp.key_block_length != 0) |
return(1); |
- if (!ssl_cipher_get_evp(s->session,&c,&hash,NULL,NULL,&comp)) |
+ if (!ssl_cipher_get_comp(s->session, &comp)) |
+ { |
+ SSLerr(SSL_F_SSL3_SETUP_KEY_BLOCK,SSL_R_CIPHER_OR_HASH_UNAVAILABLE); |
+ return(0); |
+ } |
+ |
+ if (!ssl_cipher_get_evp(s->session,&c,&hash,NULL,NULL)) |
{ |
SSLerr(SSL_F_SSL3_SETUP_KEY_BLOCK,SSL_R_CIPHER_OR_HASH_UNAVAILABLE); |
return(0); |