Skip to content

Commit

Permalink
cgrates: return 1 while setting a non-object return
Browse files Browse the repository at this point in the history
Comply with documentation with functions that always return 1 if success

Reported by MonkeyTester (@Integration-IT on GitHub) for reporting this.
Close #3256

(cherry picked from commit 51b8a2b)
  • Loading branch information
razvancrainea committed Nov 27, 2023
1 parent 644b604 commit 8d8f515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/cgrates/cgrates_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ int cgrates_set_reply_with_values(json_object *jobj)

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

json_object_object_foreach(jobj, k, v) {
Expand Down

0 comments on commit 8d8f515

Please sign in to comment.