From: Hallvard Furuseth Date: Mon, 23 Jan 2012 23:47:49 +0000 (+0100) Subject: Silence 'assign away const' warning X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1a931a86ee6c18ab97104b8ca2226158d815dbb7;p=openldap Silence 'assign away const' warning --- 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); } /*