aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpgme-json.c
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2018-08-08 07:49:51 +0000
committerAndre Heinecke <[email protected]>2018-08-08 07:49:51 +0000
commit6e48bb0f1cbf662026bf0f70549b52bafe00c017 (patch)
treef4433c704385546371330b00b9d1fbf6d3b40381 /src/gpgme-json.c
parentcpp: Fix use after free in gencardkeyinteractor (diff)
downloadgpgme-6e48bb0f1cbf662026bf0f70549b52bafe00c017.tar.gz
gpgme-6e48bb0f1cbf662026bf0f70549b52bafe00c017.zip
json: Don't error out if chunksize is omitted
* src/gpgme-json.c (encode_and_chunk): Don't error out if no chunksize is provided. -- This fixes 82e4b900a96c837392259469a9a5821a95e7a707 which caused every call without chunksize to error out.
Diffstat (limited to 'src/gpgme-json.c')
-rw-r--r--src/gpgme-json.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gpgme-json.c b/src/gpgme-json.c
index 81b70aad..9cae944c 100644
--- a/src/gpgme-json.c
+++ b/src/gpgme-json.c
@@ -1491,10 +1491,7 @@ encode_and_chunk (cjson_t request, cjson_t response)
}
if (!chunksize)
- {
- err = GPG_ERR_INV_VALUE;
- goto leave;
- }
+ goto leave;
pending_data.buffer = data;
/* Data should already be encoded so that it does not