Skip to content

Commit 56c2c8e

Browse files
committed
event_route: Fix crash when out of SHM
1 parent 1448475 commit 56c2c8e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

evi/event_route.c

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

340340
if (!ref_script_route_check_and_update(route_s->ev_route)){
341-
LM_ERR("event route [%.s] no longer available in script\n",
342-
route_s->ev_route->name.s);
341+
LM_ERR("event route [%s] no longer available in script\n",
342+
!route_s->ev_route ? "null" : route_s->ev_route->name.s);
343343
goto cleanup;
344344
}
345345

0 commit comments

Comments
 (0)