]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
login-common: Explicitly ignore SSL_CTX_set_ecdh_auto() return value
authorMartti Rannanjärvi <martti.rannanjarvi@dovecot.fi>
Mon, 19 Feb 2018 12:51:41 +0000 (14:51 +0200)
committerMartti Rannanjärvi <martti.rannanjarvi@dovecot.fi>
Mon, 19 Feb 2018 13:00:34 +0000 (15:00 +0200)
This is to fix a compiler warning.

src/login-common/ssl-proxy-openssl.c

index 606b3dfa8472dce1a313691b5af71139b7c0bb21..14afeaf026bcae3d9025db82d1ca08697f324d57 100644 (file)
@@ -1067,7 +1067,7 @@ ssl_proxy_ctx_set_crypto_params(SSL_CTX *ssl_ctx,
 #ifdef SSL_CTX_set_ecdh_auto
        /* OpenSSL >= 1.0.2 automatically handles ECDH temporary key parameter
           selection. */
-       SSL_CTX_set_ecdh_auto(ssl_ctx, 1);
+       (void)SSL_CTX_set_ecdh_auto(ssl_ctx, 1);
 #else
        /* For OpenSSL < 1.0.2, ECDH temporary key parameter selection must be
           performed manually. Attempt to select the same curve as that used