mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-28 22:49:59 +01:00
dirmngr: Fix failed malloc error message.
* dirmngr/ocsp.c (check_signature): Fix error printing of xtrymalloc.
This commit is contained in:
parent
ebb736b2c3
commit
94908857e1
@ -519,8 +519,11 @@ check_signature (ctrl_t ctrl,
|
|||||||
/* dump_cert ("from ocsp response", cert); */
|
/* dump_cert ("from ocsp response", cert); */
|
||||||
cref = xtrymalloc (sizeof *cref);
|
cref = xtrymalloc (sizeof *cref);
|
||||||
if (!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))
|
else if (!cache_cert_silent (cert, &cref->fpr))
|
||||||
{
|
{
|
||||||
cref->next = ctrl->ocsp_certs;
|
cref->next = ctrl->ocsp_certs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user