1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

kbx: Fix allocation check

* kbx/kbxserver.c (cmd_search): Fix allocation check
--

GnuPG-bug-id: 5393
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Jakub Jelen 2021-11-23 12:17:56 +01:00 committed by NIIBE Yutaka
parent 6ee3eb4202
commit 46efee8cb7

View File

@ -391,7 +391,7 @@ cmd_search (assuan_context_t ctx, char *line)
goto leave;
}
store = xtrycalloc (n, sizeof *store);
if (!desc)
if (!store)
{
err = gpg_error_from_syserror ();
xfree (desc);