diff options
| author | Andre Heinecke <[email protected]> | 2018-05-25 12:50:59 +0000 | 
|---|---|---|
| committer | Andre Heinecke <[email protected]> | 2018-05-25 12:50:59 +0000 | 
| commit | 897522527d493307d15809a41496f8b76ec4edfe (patch) | |
| tree | b973accd572bde4bcf37bd45e6aeb52949f322de /src | |
| parent | json: Add guard in create_keylist_patterns (diff) | |
| download | gpgme-897522527d493307d15809a41496f8b76ec4edfe.tar.gz gpgme-897522527d493307d15809a41496f8b76ec4edfe.zip | |
json: Fix double ctx alloc
* src/gpgme-json.c (op_keylist): Only get one ctx.
Diffstat (limited to 'src')
| -rw-r--r-- | src/gpgme-json.c | 3 | 
1 files changed, 0 insertions, 3 deletions
| diff --git a/src/gpgme-json.c b/src/gpgme-json.c index 3cdd744d..ca8c41c8 100644 --- a/src/gpgme-json.c +++ b/src/gpgme-json.c @@ -1966,9 +1966,6 @@ op_keylist (cjson_t request, cjson_t result)    patterns = create_keylist_patterns (request);    /* Do a keylisting and add the keys */ -  if ((err = gpgme_new (&ctx))) -    goto leave; -  gpgme_set_protocol (ctx, protocol);    gpgme_set_keylist_mode (ctx, mode);    err = gpgme_op_keylist_ext_start (ctx, (const char **) patterns, | 
