mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-02 12:01:32 +01:00
dirmngr: Fix failed malloc error message.
* dirmngr/ocsp.c (check_signature): Fix error printing of xtrymalloc.
This commit is contained in:
parent
5fb2306b97
commit
b067285d59
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user