From 5085e57fb5d65c0ab271a307fc3364547e687f6a Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sat, 17 Aug 2013 14:21:54 +0100 Subject: [PATCH] Return 1 when setting ECDH auto mode. (cherry picked from commit 42082eda6f3d64ce87184d65c4eae06d677e971c) --- ssl/s3_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index 9c2843b316..6f2c6f4fbc 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -3438,7 +3438,7 @@ long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg) case SSL_CTRL_SET_ECDH_AUTO: s->cert->ecdh_tmp_auto = larg; - break; + return 1; case SSL_CTRL_SET_SIGALGS: return tls1_set_sigalgs(s->cert, parg, larg, 0); @@ -3823,7 +3823,7 @@ long ssl3_ctx_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg) parg); case SSL_CTRL_SET_ECDH_AUTO: ctx->cert->ecdh_tmp_auto = larg; - break; + return 1; case SSL_CTRL_SET_SIGALGS: return tls1_set_sigalgs(ctx->cert, parg, larg, 0); -- 2.40.0