diff --git a/modules/rr/loose.c b/modules/rr/loose.c index 76204c97888..21cac737614 100644 --- a/modules/rr/loose.c +++ b/modules/rr/loose.c @@ -977,7 +977,9 @@ int check_route_param(struct sip_msg * msg, regex_t* re) return -1; /* include also the first ';' */ - for( params=routed_params ; params.s[0]!=';' ; params.s--,params.len++ ); + params=routed_params; + params.s--; + params.len++; /* do the well-known trick to convert to null terminted */ bk = params.s[params.len];