Hi tech@,

In case this is considered important enough...
Remove unused "ret" from SSL_use_PrivateKey().

- Michael


Index: ssl_rsa.c
===================================================================
RCS file: /cvs/src/lib/libssl/src/ssl/ssl_rsa.c,v
retrieving revision 1.11
diff -u -r1.11 ssl_rsa.c
--- ssl_rsa.c   17 Apr 2014 21:37:37 -0000      1.11
+++ ssl_rsa.c   9 May 2014 03:46:58 -0000
@@ -273,8 +273,6 @@
 int
 SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey)
 {
-       int ret;
-
        if (pkey == NULL) {
                SSLerr(SSL_F_SSL_USE_PRIVATEKEY, ERR_R_PASSED_NULL_PARAMETER);
                return (0);
@@ -283,8 +281,7 @@
                SSLerr(SSL_F_SSL_USE_PRIVATEKEY, ERR_R_MALLOC_FAILURE);
                return (0);
        }
-       ret = ssl_set_pkey(ssl->cert, pkey);
-       return (ret);
+       return (ssl_set_pkey(ssl->cert, pkey));
 }
 
 #ifndef OPENSSL_NO_STDIO

Reply via email to