Skip to content

Commit

Permalink
event_route: Fix off-by-one error in some $param warning log
Browse files Browse the repository at this point in the history
(cherry picked from commit d4b03b7)
  • Loading branch information
liviuchircu committed Apr 10, 2023
1 parent 0680e26 commit e386c10
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 @@ -304,7 +304,7 @@ int event_route_param_get(struct sip_msg *msg, pv_param_t *ip,
for (index = 1; it && index != tv.ri; it = it->next, index++);
if (!it) {
LM_WARN("Parameter %d not found for event %.*s - max %d\n",
tv.ri, event_name->len, event_name->s, index);
tv.ri, event_name->len, event_name->s, index-1);
return pv_get_null(msg, ip, res);
}
} else {
Expand Down

0 comments on commit e386c10

Please sign in to comment.