From 46efee8cb7009b0a0c04b42822d4579424c536e1 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Tue, 23 Nov 2021 12:17:56 +0100 Subject: [PATCH] kbx: Fix allocation check * kbx/kbxserver.c (cmd_search): Fix allocation check -- GnuPG-bug-id: 5393 Signed-off-by: Jakub Jelen --- kbx/kbxserver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kbx/kbxserver.c b/kbx/kbxserver.c index 1949e6278..fa04ccf64 100644 --- a/kbx/kbxserver.c +++ b/kbx/kbxserver.c @@ -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);