From: Steffan Karger Date: Wed, 28 May 2014 19:40:34 +0000 (+0200) Subject: Fix merge error in a6c573d, the ssl ctx is now abstracted. X-Git-Tag: v2.4_alpha1~423 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efb304cf4904cbf5d926ab7a6ecde101472fa023;p=thirdparty%2Fopenvpn.git Fix merge error in a6c573d, the ssl ctx is now abstracted. Between the origin patch submission (2011) and now the cipher abstraction layer has been added. This patch slipped through without proper adjustment. Signed-off-by: Steffan Karger Acked-by: Gert Doering Message-Id: <53863C41.1020408@karger.me> URL: http://article.gmane.org/gmane.network.openvpn.devel/8745 Signed-off-by: Gert Doering --- diff --git a/src/openvpn/ssl_openssl.c b/src/openvpn/ssl_openssl.c index 4862badca..c9d2d26de 100644 --- a/src/openvpn/ssl_openssl.c +++ b/src/openvpn/ssl_openssl.c @@ -199,7 +199,7 @@ tls_ctx_set_options (struct tls_root_ctx *ctx, unsigned int ssl_flags) } #ifdef SSL_MODE_RELEASE_BUFFERS - SSL_CTX_set_mode (ctx, SSL_MODE_RELEASE_BUFFERS); + SSL_CTX_set_mode (ctx->ctx, SSL_MODE_RELEASE_BUFFERS); #endif SSL_CTX_set_session_cache_mode (ctx->ctx, SSL_SESS_CACHE_OFF); SSL_CTX_set_default_passwd_cb (ctx->ctx, pem_password_callback);