aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/gprs_sgsn.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-05-24 20:51:17 +0800
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-05-25 14:38:01 +0800
commit9270d99f3db58e70d50ad45644b039b3fa314574 (patch)
tree216aa1390b7c0668df1126bed86536430aeefa6a /openbsc/src/gprs/gprs_sgsn.c
parent5e4b88cbb2d754d691a858a3ff99bcdc7ed9c7ce (diff)
sgsn: If there is a subscr don't allow an empty list
This is a left-over from the initial system where no PDP was provided by the system. For now if there is a subscr attached and no PDP context provisioned. He is not allowed to have a data connection. Update the testcase to create the pdp list entry more early with a wildcard and then change it to a specific match.
Diffstat (limited to 'openbsc/src/gprs/gprs_sgsn.c')
-rw-r--r--openbsc/src/gprs/gprs_sgsn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/openbsc/src/gprs/gprs_sgsn.c b/openbsc/src/gprs/gprs_sgsn.c
index 5fe4e616e..ad90d3c16 100644
--- a/openbsc/src/gprs/gprs_sgsn.c
+++ b/openbsc/src/gprs/gprs_sgsn.c
@@ -638,8 +638,7 @@ struct sgsn_ggsn_ctx *sgsn_mm_ctx_find_ggsn_ctx(struct sgsn_mm_ctx *mmctx,
req_apn_str[0] = 0;
}
- if (mmctx->subscr == NULL ||
- llist_empty(&mmctx->subscr->sgsn_data->pdp_list))
+ if (mmctx->subscr == NULL)
allow_any_apn = 1;
if (strlen(req_apn_str) == 0 && !allow_any_apn) {