[PATCH 5/5] paging: Forget we were paging after the dispatch

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/OpenBSC@lists.osmocom.org/.

Holger Hans Peter Freyther holger at freyther.de
Mon Aug 3 10:03:23 UTC 2015


From: Holger Hans Peter Freyther <holger at moiji-mobile.com>

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.
---
 openbsc/src/libmsc/gsm_subscriber.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/openbsc/src/libmsc/gsm_subscriber.c b/openbsc/src/libmsc/gsm_subscriber.c
index 145cbdd..442e84c 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;
 }
-- 
2.3.5




More information about the OpenBSC mailing list