mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
scd: Fix checking memory allocation.
* scd/app-openpgp.c (read_public_key): Fix the memory. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
37d7ee8b98
commit
abcf0116ee
1 changed files with 1 additions and 1 deletions
|
@ -1766,7 +1766,7 @@ read_public_key (app_t app, ctrl_t ctrl, u32 created_at, int keyno,
|
|||
|
||||
len = gcry_sexp_sprint (s_pkey, GCRYSEXP_FMT_CANON, NULL, 0);
|
||||
keybuf = xtrymalloc (len);
|
||||
if (!data)
|
||||
if (!keybuf)
|
||||
{
|
||||
err = gpg_error_from_syserror ();
|
||||
gcry_sexp_release (s_pkey);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue