tolerate recoup information not being present
This commit is contained in:
parent
fc79dd233a
commit
883c063f43
@ -1045,9 +1045,10 @@ decode_keys_json (const json_t *resp_obj,
|
||||
json_t *recoup_info;
|
||||
unsigned int index;
|
||||
|
||||
EXITIF (NULL == (recoup_array =
|
||||
if (NULL != (recoup_array =
|
||||
json_object_get (resp_obj,
|
||||
"recoup")));
|
||||
"recoup")))
|
||||
{
|
||||
EXITIF (JSON_ARRAY != json_typeof (recoup_array));
|
||||
|
||||
json_array_foreach (recoup_array, index, recoup_info) {
|
||||
@ -1075,6 +1076,7 @@ decode_keys_json (const json_t *resp_obj,
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
if (check_sig)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user