Skip to content

Commit

Permalink
action/params: do not run route if params were not properly built
Browse files Browse the repository at this point in the history
Thanks go to Nick Altmann for reporting it
Close #3141

(cherry picked from commit 3cdc8f1)
  • Loading branch information
razvancrainea committed Aug 7, 2023
1 parent 14cd999 commit ac068b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions action.c
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,7 @@ int do_action(struct action* a, struct sip_msg* msg)
if (!route_p) {
LM_ERR("could not expand route params!\n");
ret=E_OUT_OF_MEM;
break;
}
route_params_push_level(sroutes->request[i].name,
route_p, (void *)(unsigned long)len, route_param_get);
Expand Down

0 comments on commit ac068b6

Please sign in to comment.