Skip to content

Commit

Permalink
cgrates: returning a non-object response is not a problem
Browse files Browse the repository at this point in the history
(cherry picked from commit f7f66d3)
  • Loading branch information
razvancrainea committed Sep 30, 2021
1 parent 0ea900e commit 34b982b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/cgrates/cgrates_common.c
Expand Up @@ -211,8 +211,8 @@ int cgrates_set_reply_with_values(json_object *jobj)
}

if (json_object_get_type(jobj) != json_type_object) {
LM_ERR("reply is not an object - return will not be set!\n");
return -1;
LM_DBG("reply is not an object - return will not be set!\n");
return 2;
}

json_object_object_foreach(jobj, k, v) {
Expand Down

0 comments on commit 34b982b

Please sign in to comment.