On Wed, Jan 01, 2020 at 08:18:49PM +0500, Илья Шипицин wrote:
> Hello,
> 
> while working on #429,
> I noticed strange things that I do not understand
> for example
> 
> if (ecdhe == NULL) {
> (void)SSL_CTX_set_ecdh_auto(ctx, 1);
> return cfgerr;
> }
> 
> why do we need to call SSL_CTX_set_ecdh_auto right before returning error ?
> 

The purpose here is just to leave the function, not to return an error. 
No error are set after calling SSL_CTX_set_ecdh_auto(). You are supposed to
return any warning or error when leaving the function, and they are stored in
the cfgerr variable.

-- 
William Lallemand

Reply via email to