Skip to content

Commit b775af7

Browse files
committed
event_route: Fix crash when out of SHM
(cherry picked from commit 56c2c8e)
1 parent 25d3f7a commit b775af7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/event_route/route_send.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ static void route_received(int sender, void *param)
130130
suppress_proc_log_event();
131131

132132
if (!ref_script_route_check_and_update(route_s->ev_route)){
133-
LM_ERR("event route [%.s] no longer available in script\n",
134-
route_s->ev_route->name.s);
133+
LM_ERR("event route [%s] no longer available in script\n",
134+
!route_s->ev_route ? "null" : route_s->ev_route->name.s);
135135
goto cleanup;
136136
}
137137

0 commit comments

Comments
 (0)