aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-04-13 21:17:05 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-04-13 21:17:05 +0000
commite9d068b913fd972bda6d1c2366bb1dcd6eb8e31f (patch)
tree78f591359f3134454f8cbccf808050339b4ad7b0 /lib
parentec2ad57c32575a0d694933fe75d252e9a961c3e7 (diff)
oops, only negative numbers are errors
Diffstat (limited to 'lib')
-rw-r--r--lib/gtls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gtls.c b/lib/gtls.c
index 0ec101ce6..fff5d5e62 100644
--- a/lib/gtls.c
+++ b/lib/gtls.c
@@ -154,8 +154,8 @@ Curl_gtls_connect(struct connectdata *conn,
rc = gnutls_certificate_set_x509_trust_file(conn->ssl[sockindex].cred,
data->set.ssl.CAfile,
GNUTLS_X509_FMT_PEM);
- if(rc) {
- infof(data, "error reading ca cert file %s (%s)",
+ if(rc < 0) {
+ infof(data, "error reading ca cert file %s (%s)\n",
data->set.ssl.CAfile, gnutls_strerror(rc));
}
}