Change in osmo-hlr[master]: src/hlr.c: simplify initial check in subscr_create_on_demand()

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

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Sat Apr 20 09:35:18 UTC 2019


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/13717


Change subject: src/hlr.c: simplify initial check in subscr_create_on_demand()
......................................................................

src/hlr.c: simplify initial check in subscr_create_on_demand()

Change-Id: If6b78adc236ef923e0b2e37b4e2407338a4b98b8
---
M src/hlr.c
1 file changed, 3 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/17/13717/1

diff --git a/src/hlr.c b/src/hlr.c
index 2cd6789..ef93d7f 100644
--- a/src/hlr.c
+++ b/src/hlr.c
@@ -151,7 +151,9 @@
 static void subscr_create_on_demand(const char *imsi) {
 	int rc;
 
-	if (!g_hlr->create_subscr_on_demand || db_subscr_exists_by_imsi(g_hlr->dbc, imsi) == 0)
+	if (!g_hlr->create_subscr_on_demand)
+		return;
+	if (db_subscr_exists_by_imsi(g_hlr->dbc, imsi) == 0)
 		return;
 
 	LOGP(DMAIN, LOGL_INFO, "IMSI='%s': Creating subscriber on demand\n", imsi);

-- 
To view, visit https://gerrit.osmocom.org/13717
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-hlr
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: If6b78adc236ef923e0b2e37b4e2407338a4b98b8
Gerrit-Change-Number: 13717
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190420/dc06d2fa/attachment.htm>


More information about the gerrit-log mailing list