From 1a931a86ee6c18ab97104b8ca2226158d815dbb7 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Tue, 24 Jan 2012 00:47:49 +0100 Subject: [PATCH] Silence 'assign away const' warning --- libraries/libldap/tls_o.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libraries/libldap/tls_o.c b/libraries/libldap/tls_o.c index f7510330b6..183410a4b4 100644 --- a/libraries/libldap/tls_o.c +++ b/libraries/libldap/tls_o.c @@ -657,10 +657,8 @@ static int tlso_session_strength( tls_session *sess ) { tlso_session *s = (tlso_session *)sess; - SSL_CIPHER *c; - c = SSL_get_current_cipher(s); - return SSL_CIPHER_get_bits(c, NULL); + return SSL_CIPHER_get_bits(SSL_get_current_cipher(s), NULL); } /* -- 2.39.5