summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2015-07-14 09:53:38 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2015-07-14 09:53:38 +0900
commit0f9532b186c1e0b54d7e7a6d76bce82b6226122b (patch)
tree02b433b06dba7551e0e4731bb6d4e1e2eb7ae24f /src
parent2a7aa3ea4d03a9c808d5888f5509c08cd27aa27c (diff)
downloadlibgcrypt-0f9532b186c1e0b54d7e7a6d76bce82b6226122b.tar.gz
sexp: Fix invalid deallocation in error path.
* src/sexp.c: Fix wrong condition. -- Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'src')
-rw-r--r--src/sexp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sexp.c b/src/sexp.c
index 9bc13caf..1c014e0c 100644
--- a/src/sexp.c
+++ b/src/sexp.c
@@ -2405,7 +2405,7 @@ _gcry_sexp_vextract_param (gcry_sexp_t sexp, const char *path,
_gcry_mpi_release (*array[idx]);
*array[idx] = NULL;
}
- else if (!arrayisdesc[idx] == 1)
+ else if (arrayisdesc[idx] == 1)
{
/* Caller provided buffer. */
gcry_buffer_t *spec = (gcry_buffer_t*)array[idx];