diff options
author | Peter Wu <peter@lekensteyn.nl> | 2015-07-14 09:53:38 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2015-07-14 09:53:38 +0900 |
commit | 0f9532b186c1e0b54d7e7a6d76bce82b6226122b (patch) | |
tree | 02b433b06dba7551e0e4731bb6d4e1e2eb7ae24f | |
parent | 2a7aa3ea4d03a9c808d5888f5509c08cd27aa27c (diff) | |
download | libgcrypt-0f9532b186c1e0b54d7e7a6d76bce82b6226122b.tar.gz |
sexp: Fix invalid deallocation in error path.
* src/sexp.c: Fix wrong condition.
--
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
-rw-r--r-- | src/sexp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |