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
1 changed files with 1 additions and 1 deletions

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