[PATCH] gsm_04_08: Use osmo_assert for transt->conn and conn only in case of paging succeeded

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 Freyther holger at freyther.de
Wed May 27 10:09:12 UTC 2015


> On 26 May 2015, at 12:53, Ivan Kluchnikov <kluchnikovi at gmail.com> wrote:


HI,

> setup_trig_pag_evt function can receive parameter conn = NULL, if T3113 expires.

ah thank you very much for the patch and you are obviously right that in case the
paging times out there will be no subscriber connection.


> ---
> openbsc/src/libmsc/gsm_04_08.c |    5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/openbsc/src/libmsc/gsm_04_08.c b/openbsc/src/libmsc/gsm_04_08.c
> index 5609602..d45ae08 100644
> --- a/openbsc/src/libmsc/gsm_04_08.c
> +++ b/openbsc/src/libmsc/gsm_04_08.c
> @@ -1389,13 +1389,12 @@ static int setup_trig_pag_evt(unsigned int hooknum, unsigned int event,
> 	struct gsm_subscriber_connection *conn = _conn;
> 	struct gsm_trans *transt = _transt;
> 
> -	OSMO_ASSERT(!transt->conn);

Is there any reason to move this assert as well? setup_trig_pag_evt should be
called exactly once right? And there should be no pre-existing subscriber connection?
Do you have time to re-test with just moving one of the two asserts?


thank you

	holger


More information about the OpenBSC mailing list