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 82e4b900a9 which
caused every call without chunksize to error out.
This commit is contained in:
Andre Heinecke 2018-08-08 09:49:51 +02:00
parent 3b78244360
commit 6e48bb0f1c
No known key found for this signature in database
GPG Key ID: 2978E9D40CBABA5C

View File

@ -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