Skip to content

Commit

Permalink
route: fix previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Aug 31, 2023
1 parent 242598f commit d866688
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions route.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,6 @@ void unref_script_route(struct script_route_ref *ref)

int update_script_route_ref(struct script_route_ref *ref)
{
if (!ref)
return;

LM_DBG("updating %p [%.*s], idx=%d, ver/cnt %d\n",
ref, ref->name.len, ref->name.s, ref->idx, ref->u.version);

Expand Down Expand Up @@ -1477,7 +1474,7 @@ static int fix_actions(struct action* a)
return ret;
}
rt_ref = (struct script_route_ref*)(t->elem[1].u.data);
if ( update_script_route_ref( rt_ref ) !=0 ) {
if (rt_ref && update_script_route_ref( rt_ref ) !=0 ) {
LM_ERR("async/launch resume route [%s] is not defined\n",
rt_ref->name.s);
ret = E_CFG;
Expand Down

0 comments on commit d866688

Please sign in to comment.