Skip to content

Commit

Permalink
rtpengine: make oom error logs more verbose
Browse files Browse the repository at this point in the history
(cherry picked from commit 6d38787)
  • Loading branch information
razvancrainea committed Nov 27, 2023
1 parent a382e73 commit fb70797
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/rtpengine/rtpengine.c
Original file line number Diff line number Diff line change
Expand Up @@ -2367,14 +2367,14 @@ static int parse_flags(struct ng_flags_parse *ng_flags, struct sip_msg *msg,
if (!val.s) {
bitem = bencode_str(bencode_item_buffer(ng_flags->flags), &key);
if (!bitem) {
err = "no more memory";
err = "no more memory for list value";
goto error;
}
BCHECK(bencode_list_add(ng_flags->flags, bitem));
} else {
bitem = bencode_str(bencode_item_buffer(ng_flags->dict), &val);
if (!bitem) {
err = "no more memory";
err = "no more memory for dict value";
goto error;
}
BCHECK(bencode_dictionary_add_len(ng_flags->dict, key.s, key.len, bitem));
Expand All @@ -2391,7 +2391,7 @@ static int parse_flags(struct ng_flags_parse *ng_flags, struct sip_msg *msg,
BCHECK(bencode_list_add(ng_flags->direction, bitem));
bitem = bencode_str(bencode_item_buffer(ng_flags->direction), &outiface);
if (!bitem) {
err = "no more memory";
err = "no more memory for direction";
goto error;
}
BCHECK(bencode_list_add(ng_flags->direction, bitem));
Expand Down

0 comments on commit fb70797

Please sign in to comment.