mirror of https://gerrit.osmocom.org/libosmocore
timer: only call the callback if not NULL
Fix a crash in osmo-sgsn. Change-Id: I04d58d9580708cc0f6d0f4aa17d3e9f2c6235c8e
This commit is contained in:
parent
edf6fe75b7
commit
ec9bd52628
|
@ -241,6 +241,7 @@ int osmo_timers_update(void)
|
|||
restart:
|
||||
llist_for_each_entry(this, &timer_eviction_list, list) {
|
||||
osmo_timer_del(this);
|
||||
if (this->cb)
|
||||
this->cb(this->data);
|
||||
work = 1;
|
||||
goto restart;
|
||||
|
|
Loading…
Reference in New Issue