aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte (local) <laflocal@hanuman.gnumonks.org>2009-08-13 20:44:23 +0200
committerHarald Welte (local) <laflocal@hanuman.gnumonks.org>2009-08-13 20:44:23 +0200
commitee9afe332d3d3cb895293294d9bcc76451a6466c (patch)
tree6a446d5c484f1b94b1abd003153be184152a72a5
parent2928bc0233759ebf8ea74ab70711676e68c24a4d (diff)
when in token auth mode, accept phones that are authorized
-rw-r--r--openbsc/src/gsm_04_08.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/gsm_04_08.c b/openbsc/src/gsm_04_08.c
index 03fe01058..3e6c149ae 100644
--- a/openbsc/src/gsm_04_08.c
+++ b/openbsc/src/gsm_04_08.c
@@ -331,6 +331,8 @@ static int authorize_subscriber(struct gsm_loc_updating_operation *loc,
case GSM_AUTH_POLICY_CLOSED:
return subscriber->authorized;
case GSM_AUTH_POLICY_TOKEN:
+ if (subscriber->authorized)
+ return subscriber->authorized;
return (subscriber->flags & GSM_SUBSCRIBER_FIRST_CONTACT);
case GSM_AUTH_POLICY_ACCEPT_ALL:
return 1;