summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
Diffstat (limited to 'methods')
-rw-r--r--methods/connect.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/methods/connect.cc b/methods/connect.cc
index f90474059..d82d3d1a8 100644
--- a/methods/connect.cc
+++ b/methods/connect.cc
@@ -684,11 +684,11 @@ bool UnwrapTLS(std::string Host, std::unique_ptr<MethodFd> &Fd,
if (fileinfo.empty())
{
// No CaInfo specified, use system trust store.
- if ((err = gnutls_certificate_set_x509_system_trust(tlsFd->credentials)) <= 0)
- return _error->Error("Could not load system TLS certificates: %s",
- err == 0
- ? "No certificates available. Try installing ca-certificates."
- : gnutls_strerror(err));
+ err = gnutls_certificate_set_x509_system_trust(tlsFd->credentials);
+ if (err == 0)
+ Owner->Warning("No system certificates available. Try installing ca-certificates.");
+ else if (err < 0)
+ return _error->Error("Could not load system TLS certificates: %s", gnutls_strerror(err));
}
else
{