OpenSSL ssl_store_cert(): Remove pointless variable initialization
authorFabian Keil <fk@fabiankeil.de>
Sun, 14 Feb 2021 19:32:51 +0000 (20:32 +0100)
committerFabian Keil <fk@fabiankeil.de>
Mon, 15 Mar 2021 14:35:44 +0000 (15:35 +0100)
openssl.c

index 73c568d..67e58e9 100644 (file)
--- a/openssl.c
+++ b/openssl.c
@@ -268,7 +268,7 @@ extern int ssl_recv_data(struct ssl_attr *ssl_attr, unsigned char *buf, size_t m
  *********************************************************************/
 static int ssl_store_cert(struct client_state *csp, X509 *crt)
 {
  *********************************************************************/
 static int ssl_store_cert(struct client_state *csp, X509 *crt)
 {
-   long len = 0;
+   long len;
    struct certs_chain  *last = &(csp->server_certs_chain);
    int ret = 0;
    BIO *bio = BIO_new(BIO_s_mem());
    struct certs_chain  *last = &(csp->server_certs_chain);
    int ret = 0;
    BIO *bio = BIO_new(BIO_s_mem());