diff options
author | Nils Larsch <nils@openssl.org> | 2005-08-08 19:39:29 +0000 |
---|---|---|
committer | Nils Larsch <nils@openssl.org> | 2005-08-08 19:39:29 +0000 |
commit | cf1546a60e1de07a2d184f1ab9d29202c138b484 (patch) | |
tree | 75668aca7b57b847e21590ca7ec832f9e3ee1ba1 /ssl/s3_lib.c | |
parent | e7eec05af02c2516c4dbedaf48b72c69a92a6d15 (diff) |
a ssl object needs it's own instance of a ecdh key; remove obsolete comment
Diffstat (limited to 'ssl/s3_lib.c')
-rw-r--r-- | ssl/s3_lib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index a1a32dbdd5..b531986f05 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -1805,12 +1805,12 @@ long ssl3_ctx_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg) SSLerr(SSL_F_SSL3_CTX_CTRL,ERR_R_ECDH_LIB); return 0; } - if (!EC_KEY_up_ref((EC_KEY *)parg)) + ecdh = EC_KEY_dup((EC_KEY *)parg); + if (ecdh == NULL) { - SSLerr(SSL_F_SSL3_CTX_CTRL,ERR_R_ECDH_LIB); + SSLerr(SSL_F_SSL3_CTX_CTRL,ERR_R_EC_LIB); return 0; } - ecdh = (EC_KEY *)parg; if (!(ctx->options & SSL_OP_SINGLE_ECDH_USE)) { if (!EC_KEY_generate_key(ecdh)) |