Skip to content

Commit

Permalink
event_route: fix int interpretation in $param
Browse files Browse the repository at this point in the history
Treat the integer as signed when building the $param value

Many thanks to Norm Brandinger (@NormB on GitHub) for reporting it in #3367
  • Loading branch information
razvancrainea committed Apr 26, 2024
1 parent 6af9039 commit 999b8ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/event_route/event_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ int event_route_param_get(struct sip_msg *msg, pv_param_t *ip,

/* parameter found - populate it */
if (it->flags & EVI_INT_VAL) {
res->rs.s = int2str(it->val.n, &res->rs.len);
res->rs.s = sint2str(it->val.n, &res->rs.len);
res->ri = it->val.n;
res->flags = PV_VAL_STR|PV_VAL_INT|PV_TYPE_INT;
} else {
Expand Down

0 comments on commit 999b8ac

Please sign in to comment.