719322693c
Initialize the llist head gsm_bts->paging.pending_requests at the time gsm_bts
is allocated, not only at paging_init_if_needed().
The gsm_bts->paging sub-struct is invalid as long as gsm_bts->paging.bts
doesn't point back to bts. Hence the recently added iteration of
gsm_bts->paging.pending_requests should have checked whether bts is NULL. The
llist_head pending_requests is not initialized unless paging_init_if_needed()
has been called (and paging.bts is hence set). However, this fix is a safer way
to prevent errors like this in general.
The segfault was introduced by
|
||
---|---|---|
.. | ||
ipaccess | ||
libbsc | ||
libcommon | ||
libcommon-cs | ||
libfilter | ||
libtrau | ||
osmo-bsc | ||
osmo-bsc_nat | ||
utils | ||
Makefile.am |