summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmsc/gsm_subscriber.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-08-03 11:34:35 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-08-03 12:02:14 +0200
commiteb48cafac9af84586679a4ce4caeb985ef0b1eb1 (patch)
treee5c1d729eb01e90f38f4a193e63602717595156b /openbsc/src/libmsc/gsm_subscriber.c
parent778c7d1544fd1c0ae4e4716a3b2391ae82c60f41 (diff)
paging: Forget we were paging after the dispatch
So in case somebody is starting paging from within a paging expired callback we would dispatch the paging request right away with the same failure.
Diffstat (limited to 'openbsc/src/libmsc/gsm_subscriber.c')
-rw-r--r--openbsc/src/libmsc/gsm_subscriber.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libmsc/gsm_subscriber.c b/openbsc/src/libmsc/gsm_subscriber.c
index 145cbdd5d..442e84c4c 100644
--- a/openbsc/src/libmsc/gsm_subscriber.c
+++ b/openbsc/src/libmsc/gsm_subscriber.c
@@ -91,7 +91,6 @@ static int subscr_paging_dispatch(unsigned int hooknum, unsigned int event,
* and forget we wanted to page.
*/
paging_request_stop(NULL, subscr, NULL, NULL);
- subscr->is_paging = 0;
/* Inform parts of the system we don't know */
sig_data.subscr = subscr;
@@ -112,6 +111,7 @@ static int subscr_paging_dispatch(unsigned int hooknum, unsigned int event,
}
/* balanced with the moment we start paging */
+ subscr->is_paging = 0;
subscr_put(subscr);
return 0;
}