aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2022-08-03 08:49:58 +0000
committerWerner Koch <[email protected]>2022-08-03 09:12:13 +0000
commit94908857e1f54a3550a3704a5de6bd10b7902169 (patch)
tree666a4ee6794b0ce590031e2604f9a582e7e9bede
parentgpgconf: Add config file for Windows Registry dumps. (diff)
downloadgnupg-94908857e1f54a3550a3704a5de6bd10b7902169.tar.gz
gnupg-94908857e1f54a3550a3704a5de6bd10b7902169.zip
dirmngr: Fix failed malloc error message.
* dirmngr/ocsp.c (check_signature): Fix error printing of xtrymalloc.
-rw-r--r--dirmngr/ocsp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/dirmngr/ocsp.c b/dirmngr/ocsp.c
index eaa6ca2b6..3483ab992 100644
--- a/dirmngr/ocsp.c
+++ b/dirmngr/ocsp.c
@@ -519,8 +519,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;