This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
lynxis lazus gerrit-no-reply at lists.osmocom.org
Review at https://gerrit.osmocom.org/1344
timer: only call the callback if not NULL
Fix a crash in osmo-sgsn.
Change-Id: I04d58d9580708cc0f6d0f4aa17d3e9f2c6235c8e
---
M src/timer.c
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/44/1344/1
diff --git a/src/timer.c b/src/timer.c
index 10a0b95..cc6d5cc 100644
--- a/src/timer.c
+++ b/src/timer.c
@@ -241,7 +241,8 @@
restart:
llist_for_each_entry(this, &timer_eviction_list, list) {
osmo_timer_del(this);
- this->cb(this->data);
+ if (this->cb)
+ this->cb(this->data);
work = 1;
goto restart;
}
--
To view, visit https://gerrit.osmocom.org/1344
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I04d58d9580708cc0f6d0f4aa17d3e9f2c6235c8e
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>