diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2014-11-03 14:57:39 +0100 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2014-11-03 14:57:39 +0100 |
commit | 873eb899e487ddeb17fd995c07cc35f9a43fad71 (patch) | |
tree | 02d1aadebe982499a72e33c02edb31c4bb1f2ebe | |
parent | 0fab748e9184fdf2f1fee832acf0e81cb46e44b1 (diff) | |
parent | 22fbb2656e3daf06c290d63d99b70c78f2f6d15d (diff) | |
download | libgit2-873eb899e487ddeb17fd995c07cc35f9a43fad71.tar.gz |
Merge pull request #2680 from libgit2/cmn/invalid-cert-return
netops: return GIT_ECERTIFICATE when it fails the basic tests
-rw-r--r-- | src/netops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netops.c b/src/netops.c index adbae61c4..23e7e9d3c 100644 --- a/src/netops.c +++ b/src/netops.c @@ -276,7 +276,7 @@ static int verify_server_cert(gitno_ssl *ssl, const char *host) if (SSL_get_verify_result(ssl->ssl) != X509_V_OK) { giterr_set(GITERR_SSL, "The SSL certificate is invalid"); - return -1; + return GIT_ECERTIFICATE; } /* Try to parse the host as an IP address to see if it is */ |