fix handling of "automatic" in file mode

This commit is contained in:
Dr. Stephen Henson 2012-12-06 21:53:05 +00:00
parent 0090a686c0
commit f1f5c70a04

View File

@ -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)