summaryrefslogtreecommitdiff
path: root/lib/x509/x509.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/x509/x509.c')
-rw-r--r--lib/x509/x509.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/x509.c b/lib/x509/x509.c
index 641b3ac461..d513b8e2fe 100644
--- a/lib/x509/x509.c
+++ b/lib/x509/x509.c
@@ -522,7 +522,7 @@ gnutls_x509_crt_import(gnutls_x509_crt_t cert,
_gnutls_fbase64_decode(PEM_X509_CERT2, data->data,
data->size, &cert->der);
- if (result <= 0) {
+ if (result < 0) {
/* try for the second header */
result =
_gnutls_fbase64_decode(PEM_X509_CERT,