diff options
Diffstat (limited to 'src/libgit2.c')
-rw-r--r-- | src/libgit2.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libgit2.c b/src/libgit2.c index aee9cf2cd..09f7ab533 100644 --- a/src/libgit2.c +++ b/src/libgit2.c @@ -261,10 +261,7 @@ int git_libgit2_opts(int key, ...) { const char *file = va_arg(ap, const char *); const char *path = va_arg(ap, const char *); - if (file) - error = git_mbedtls__set_cert_location(file, 0); - if (error && path) - error = git_mbedtls__set_cert_location(path, 1); + error = git_mbedtls__set_cert_location(file, path); } #else git_error_set(GIT_ERROR_SSL, "TLS backend doesn't support certificate locations"); |