Skip to content

Commit

Permalink
Fix evi crash when defining more than 10 events
Browse files Browse the repository at this point in the history
(cherry picked from commit ba04cba)
  • Loading branch information
liviuchircu committed Sep 16, 2013
1 parent 8a6aaa2 commit 35ac1af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evi/event_interface.c
Expand Up @@ -66,7 +66,7 @@ event_id_t evi_publish_event(str event_name)
}
} else if (events_no == max_alloc_events) {
max_alloc_events *= 2;
events = shm_realloc(events, max_alloc_events);
events = shm_realloc(events, max_alloc_events * sizeof(evi_event_t));
if (!events) {
LM_ERR("no more shm memory to hold %d events\n", max_alloc_events);
return EVI_ERROR;
Expand Down

0 comments on commit 35ac1af

Please sign in to comment.