Skip to content

Commit

Permalink
rtpengine: add the cookie len to the iovec buffers
Browse files Browse the repository at this point in the history
This fixes rtpengine from sending the appropriate dictionary end 'e' in
the buffer sent over the network.
Thanks go to @ankogan on GitHub for reporting it.
Close #2985
  • Loading branch information
razvancrainea committed Jan 9, 2023
1 parent 26e2ca9 commit 99d14da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/rtpengine/rtpengine.c
Original file line number Diff line number Diff line change
Expand Up @@ -2855,6 +2855,7 @@ send_rtpe_command(struct rtpe_node *node, bencode_item_t *dict, int *outlen)
if (IOV_MAX < OSIP_IOV_MAX)
max_vcnt = IOV_MAX;
#endif
vcnt++; /* add the cookie */

if (vcnt > max_vcnt) {
int i, vec_len = 0;
Expand Down

0 comments on commit 99d14da

Please sign in to comment.