From 6e48bb0f1cbf662026bf0f70549b52bafe00c017 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Wed, 8 Aug 2018 09:49:51 +0200 Subject: [PATCH] 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. --- src/gpgme-json.c | 5 +---- 1 file changed, 1 insertion(+), 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