summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2017-06-30 09:46:29 +0200
committerJulian Andres Klode <jak@debian.org>2017-06-30 09:46:29 +0200
commit425e2dff0e4013edac6663a34a6359c98f4e8477 (patch)
tree0e7fb48e37ba709efc249943651bfdbd5c0d089e /methods
parent24f801bb0d45911cf195a56c49f6968f98442697 (diff)
Don't read CaInfo if not specified (missing else)
This fixes a regression from ~alpha2. Closes: #866559 Gbp-Dch: Full
Diffstat (limited to 'methods')
-rw-r--r--methods/connect.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/methods/connect.cc b/methods/connect.cc
index 1a95e2597..47e9e15d4 100644
--- a/methods/connect.cc
+++ b/methods/connect.cc
@@ -668,6 +668,7 @@ bool UnwrapTLS(std::string Host, std::unique_ptr<MethodFd> &Fd,
? "No certificates available. Try installing ca-certificates."
: gnutls_strerror(err));
}
+ else
{
// CA location has been set, use the specified one instead
gnutls_certificate_set_verify_flags(tlsFd->credentials, GNUTLS_VERIFY_ALLOW_X509_V1_CA_CRT);