summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-07-26 11:15:23 +0100
committerGitHub <noreply@github.com>2018-07-26 11:15:23 +0100
commit7d3930a15e4b4eb292c0e24debdf1b39a6d7d63b (patch)
treee3943d25a40a033392fc11aaab929ec13655dd65
parent45a78977f034c4f9a3558c6c140899c07f47c2f8 (diff)
parentd4198d4d7e9bf1729b1613c0d05e0abb6a5a3c6d (diff)
downloadlibgit2-7d3930a15e4b4eb292c0e24debdf1b39a6d7d63b.tar.gz
Merge pull request #4739 from pks-t/pks/mbedtls-unused-variable
mbedtls: remove unused variable "cacert"
-rw-r--r--src/streams/mbedtls.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/streams/mbedtls.c b/src/streams/mbedtls.c
index f3aa5d7ba..bd7bd3126 100644
--- a/src/streams/mbedtls.c
+++ b/src/streams/mbedtls.c
@@ -86,8 +86,6 @@ int git_mbedtls_stream_global_init(void)
char *cipher_string = NULL;
char *cipher_string_tmp = NULL;
- mbedtls_x509_crt *cacert = NULL;
-
git__ssl_conf = git__malloc(sizeof(mbedtls_ssl_config));
GITERR_CHECK_ALLOC(git__ssl_conf);
@@ -163,8 +161,6 @@ int git_mbedtls_stream_global_init(void)
return 0;
cleanup:
- mbedtls_x509_crt_free(cacert);
- git__free(cacert);
mbedtls_ctr_drbg_free(ctr_drbg);
git__free(ctr_drbg);
mbedtls_ssl_config_free(git__ssl_conf);