[PATCH] openbsc[master]: Fix default subscriber regexp

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/.

Max gerrit-no-reply at lists.osmocom.org
Wed Jul 27 10:10:02 UTC 2016


Review at  https://gerrit.osmocom.org/614

Fix default subscriber regexp

Incorrect regular expression used by default to authorize all
subscribers to implement authorization policy 'accept-all' prevented MS
from camping on the open network.

Change-Id: I20284b3d40ecf4ca1e67d8cd25afb8d5e4ae3025
---
M openbsc/src/libbsc/net_init.c
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/14/614/1

diff --git a/openbsc/src/libbsc/net_init.c b/openbsc/src/libbsc/net_init.c
index 0e99097..c524fc9 100644
--- a/openbsc/src/libbsc/net_init.c
+++ b/openbsc/src/libbsc/net_init.c
@@ -27,7 +27,7 @@
 				     int (*mncc_recv)(struct gsm_network *, struct msgb *))
 {
 	struct gsm_network *net;
-	const char *default_regexp = "*";
+	const char *default_regexp = ".*";
 
 	net = talloc_zero(tall_bsc_ctx, struct gsm_network);
 	if (!net)
@@ -45,8 +45,8 @@
 		return NULL;
 	}
 
-	if (gsm_parse_reg(net, &net->authorized_regexp, &net->authorized_reg_str, 1,
-			  &default_regexp) != 0)
+	if (gsm_parse_reg(net, &net->authorized_regexp, &net->authorized_reg_str,
+			  2, &default_regexp) != 0)
 		return NULL;
 
 	/* Init back pointer */

-- 
To view, visit https://gerrit.osmocom.org/614
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I20284b3d40ecf4ca1e67d8cd25afb8d5e4ae3025
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>



More information about the gerrit-log mailing list