aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-10-01 13:36:52 +0800
committerHarald Welte <laforge@gnumonks.org>2017-10-01 18:19:07 +0800
commit2e84d2c29a75db6412a66356b81037508a7ef248 (patch)
tree20b4e43ff25acedb1a0ef4655cae5e816e9d70e5
parentdd266066c7cc96c797034da352cc9d72177c5780 (diff)
create_context_ind(): ignore any non-started APNs
If we receive a GTP-C CREATE PDP CONTEXT for an APN that we were unable (or not configured) to start, ignore that APN. Change-Id: I8011a9ccc1d5effd3779f184c9055af46838ccaf
-rw-r--r--ggsn/ggsn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ggsn/ggsn.c b/ggsn/ggsn.c
index c1f0c1a..dd71957 100644
--- a/ggsn/ggsn.c
+++ b/ggsn/ggsn.c
@@ -447,6 +447,9 @@ int create_context_ind(struct pdp_t *pdp)
/* First find an exact APN name match */
apn = ggsn_find_apn(ggsn, name_buf);
+ /* ignore if the APN has not been started */
+ if (!apn->started)
+ apn = NULL;
/* then try default (if any) */
if (!apn)
apn = ggsn->cfg.default_apn;