From f1f5c70a04d3fadbafe2e160bdf7efb84937a681 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 6 Dec 2012 21:53:05 +0000 Subject: [PATCH] fix handling of "automatic" in file mode --- ssl/ssl_conf.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ssl/ssl_conf.c b/ssl/ssl_conf.c index 23754739bb..940d5a88dd 100644 --- a/ssl/ssl_conf.c +++ b/ssl/ssl_conf.c @@ -272,7 +272,12 @@ static int cmd_ecdhparam(SSL_CONF_CTX *cctx, const char *value) onoff = 0; value++; } - if (strcasecmp(value, "automatic")) + if (!strcasecmp(value, "automatic")) + { + if (onoff != -1) + onoff = 1; + } + else if (onoff != -1) return 0; } else if (cctx->flags & SSL_CONF_FLAG_CMDLINE) -- 2.25.1