summaryrefslogtreecommitdiff
path: root/src/openssl_stream.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-05-18 16:04:55 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2015-05-20 15:08:39 +0200
commit1396c381782f446ae5ea177b0f5c407f90197c97 (patch)
tree1ca57e2cb7d8accf2a2fbda7b04fb3d3543e8703 /src/openssl_stream.c
parente3435673b8ed862266b5351b9e18cb55ed55d335 (diff)
downloadlibgit2-cmn/server-errors.tar.gz
errors: add GIT_EEOF to indicate early EOFcmn/server-errors
This can be used by tools to show mesages about failing to communicate with the server. The error message in this case will often contain the server's error message, as far as it managed to send anything.
Diffstat (limited to 'src/openssl_stream.c')
-rw-r--r--src/openssl_stream.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/openssl_stream.c b/src/openssl_stream.c
index 2ebfac738..78f705e49 100644
--- a/src/openssl_stream.c
+++ b/src/openssl_stream.c
@@ -55,6 +55,7 @@ static int ssl_set_error(SSL *ssl, int error)
break;
}
giterr_set(GITERR_NET, "SSL error: received early EOF");
+ return GIT_EEOF;
break;
case SSL_ERROR_SSL:
e = ERR_get_error();