dirmngr: Fix failed malloc error message.

* dirmngr/ocsp.c (check_signature): Fix error printing of xtrymalloc.
This commit is contained in:
Werner Koch 2022-08-03 10:49:58 +02:00
parent ebb736b2c3
commit 94908857e1
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 5 additions and 2 deletions

View File

@ -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;