aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dirmngr/ocsp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/dirmngr/ocsp.c b/dirmngr/ocsp.c
index f8b3e8c79..0da96ba15 100644
--- a/dirmngr/ocsp.c
+++ b/dirmngr/ocsp.c
@@ -577,8 +577,11 @@ check_signature (ctrl_t ctrl,
/* dump_cert ("from ocsp response", cert); */
cref = xtrymalloc (sizeof *cref);
if (!cref)
- log_error (_("allocating list item failed: %s\n"),
- gcry_strerror (err));
+ {
+ err = gpg_error_from_syserror ();
+ log_error (_("allocating list item failed: %s\n"),
+ gpg_strerror (err));
+ }
else if (!cache_cert_silent (cert, &cref->fpr))
{
cref->next = ctrl->ocsp_certs;