aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/paging.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2009-08-21 05:43:44 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2009-09-28 12:50:49 +0200
commit927f056f34ea8c1e29ba2ced246e7e9b3f5d688e (patch)
treef6f3fdf19465ee8f5d0f33f722cc768a8bf5d77a /openbsc/src/paging.c
parent45f9b3d3fc47074652be951eb74df2b0be2a230f (diff)
[paging] Use paging_request_stop to stop all paging requests
This loop looks a lot like the one inside the paging code. Call it instead and change the code in paging_request_stop to cope with a NULL _bts.
Diffstat (limited to 'openbsc/src/paging.c')
-rw-r--r--openbsc/src/paging.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsc/src/paging.c b/openbsc/src/paging.c
index f540437a3..87c7e7d38 100644
--- a/openbsc/src/paging.c
+++ b/openbsc/src/paging.c
@@ -295,7 +295,8 @@ void paging_request_stop(struct gsm_bts *_bts, struct gsm_subscriber *subscr,
{
struct gsm_bts *bts = NULL;
- _paging_request_stop(_bts, subscr, lchan);
+ if (_bts)
+ _paging_request_stop(_bts, subscr, lchan);
do {
/*
@@ -304,7 +305,7 @@ void paging_request_stop(struct gsm_bts *_bts, struct gsm_subscriber *subscr,
* location area of the _bts as reconfiguration of the
* network is probably happening less often.
*/
- bts = gsm_bts_by_lac(_bts->network, subscr->lac, bts);
+ bts = gsm_bts_by_lac(subscr->net, subscr->lac, bts);
if (!bts)
break;