Skip to content

Commit

Permalink
rtpengine: fix memory coruption when using branches through API
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Sep 2, 2021
1 parent 3056a37 commit 3f0af75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/rtpengine/rtpengine.c
Expand Up @@ -3681,8 +3681,8 @@ static str *rtpengine_get_call_flags(struct rtp_relay_session *sess,
(out_iface? (11/* 'out-iface= ' */ + out_iface->len): 0) +
(type? (1/* ' ' */ + type->len): 0) +
(flags? (1/* ' ' */ + flags->len): 0) +
(extra? (1/* ' ' */ + extra->len): 0)) +
(sess->branch != RTP_RELAY_ALL_BRANCHES? 20/* 'via-branch-param=br ' */ + INT2STR_MAX_LEN : 0);
(extra? (1/* ' ' */ + extra->len): 0) +
(sess->branch != RTP_RELAY_ALL_BRANCHES? 20/* 'via-branch-param=br ' */ + INT2STR_MAX_LEN : 0));
if (!ret.s)
return NULL;
p = ret.s;
Expand Down

0 comments on commit 3f0af75

Please sign in to comment.