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:
parent
3b78244360
commit
6e48bb0f1c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user