[PATCH 1/5] bsc: Allow subscr_put() to be called with subscr->net=NULL.

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
Tue Oct 8 09:52:58 UTC 2013


On Tue, Oct 08, 2013 at 03:17:29AM +0200, Alexander Chemeris wrote:

> -	if (subscr->use_count <= 0 && !subscr->net->keep_subscr)
> +	if (subscr->use_count <= 0 && (!subscr->net || !subscr->net->keep_subscr))

okay, that is a difficult one. I posted my first patch to remove the
network from the db code. So maybe we expose subscr_free and the db
code (and test code) will just directly free the subscriber (or abort
when the use_count != 1)?

What do you think?





More information about the OpenBSC mailing list