diff options
author | nectar <nectar@FreeBSD.org> | 2002-08-10 01:46:10 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2002-08-10 01:46:10 +0000 |
commit | c99c2264cb2cf6c4f161218c15b8e9a3072526e5 (patch) | |
tree | 3c9559c80a7fe01c85e2dfbadcb9f84770a7e8e6 /crypto/openssl/ssl/s2_enc.c | |
parent | c48e8e3d25b5b1f6a1783f1e469b5aff8e6c8e29 (diff) | |
download | FreeBSD-src-c99c2264cb2cf6c4f161218c15b8e9a3072526e5.zip FreeBSD-src-c99c2264cb2cf6c4f161218c15b8e9a3072526e5.tar.gz |
Import of OpenSSL 0.9.6f.
Diffstat (limited to 'crypto/openssl/ssl/s2_enc.c')
-rw-r--r-- | crypto/openssl/ssl/s2_enc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/openssl/ssl/s2_enc.c b/crypto/openssl/ssl/s2_enc.c index fa2ab8d..8e5975c 100644 --- a/crypto/openssl/ssl/s2_enc.c +++ b/crypto/openssl/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(ws,c,&(s->s2->key_material[(client)?num:0]), s->session->key_arg); |