Skip to content

Commit

Permalink
nathelper: Fix segfault while interpreting the branch value
Browse files Browse the repository at this point in the history
(cherry picked from commit 81f6ac7)
  • Loading branch information
liviuchircu committed Jan 18, 2019
1 parent 4c80e34 commit b66de01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/nathelper/sip_pinger.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ static int parse_branch(str branch)
if (!end) {
/* if reverse hex2int succeeds on this it's a simple
* ping based on sipping_callid_cnt label */
if (reverse_hex2int(branch.s, end - branch.s, &label) == 0)
if (reverse_hex2int(branch.s, branch.len, &label) == 0)
return 0;

return 1;
Expand Down

0 comments on commit b66de01

Please sign in to comment.