Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Kelley <phkelley@hotmail.com>2012-11-08 20:06:23 +0400
committerPhilip Kelley <phkelley@hotmail.com>2012-11-08 20:06:23 +0400
commit9d6412832509ac3fb0217300eefbc75866dd7258 (patch)
treea82a0b448b56713b1cf2ee25dd4da98e31ebe65b /src/netops.c
parent8ff2b0c75983160264ee7c45a01bde27cfbc91ea (diff)
parent11fa84728312aecdd8bc038cebd3458ec162e603 (diff)
Merge pull request #1048 from pwkelley/basic_auth
Basic authentication for http and winhttp
Diffstat (limited to 'src/netops.c')
-rw-r--r--src/netops.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/netops.c b/src/netops.c
index fa4a729bd..422ea63f1 100644
--- a/src/netops.c
+++ b/src/netops.c
@@ -193,16 +193,19 @@ void gitno_consume_n(gitno_buffer *buf, size_t cons)
static int gitno_ssl_teardown(gitno_ssl *ssl)
{
int ret;
-
+
do {
ret = SSL_shutdown(ssl->ssl);
} while (ret == 0);
+
if (ret < 0)
- return ssl_set_error(ssl, ret);
+ ret = ssl_set_error(ssl, ret);
+ else
+ ret = 0;
SSL_free(ssl->ssl);
SSL_CTX_free(ssl->ctx);
- return 0;
+ return ret;
}
/* Match host names according to RFC 2818 rules */