aboutsummaryrefslogtreecommitdiffstats
path: root/sm/certchain.c
diff options
context:
space:
mode:
Diffstat (limited to 'sm/certchain.c')
-rw-r--r--sm/certchain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/certchain.c b/sm/certchain.c
index a25e08219..50e910240 100644
--- a/sm/certchain.c
+++ b/sm/certchain.c
@@ -61,7 +61,7 @@ unknown_criticals (KsbaCert cert)
rc = gpg_error (GPG_ERR_UNSUPPORTED_CERT);
}
}
- if (err && err != -1)
+ if (err && gpg_err_code (err) != GPG_ERR_EOF)
rc = err;
return rc;