]> git.sur5r.net Git - openldap/commitdiff
Silence 'assign away const' warning
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 23 Jan 2012 23:47:49 +0000 (00:47 +0100)
committerHallvard Furuseth <hallvard@openldap.org>
Tue, 24 Jan 2012 00:45:51 +0000 (01:45 +0100)
libraries/libldap/tls_o.c

index f7510330b6d91c267f3825f10adbaaad122a62e3..183410a4b47a68d717bbfab184846649e4865f40 100644 (file)
@@ -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);
 }
 
 /*