aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/gtphub_ext.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-11-10 20:32:13 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-11-16 15:16:34 +0100
commit5b664f4b9b95f3f8be3741794fceb309a345bb00 (patch)
treea147074a7e7021bc5a07ebc3b2113d9e19f8162b /openbsc/src/gprs/gtphub_ext.c
parentbb3d6785e1a32a651bdb9b32707245e1c126c536 (diff)
gtphub: add/fix IMSI and APN IE error handling
Sponsored-by: On-Waves ehi
Diffstat (limited to 'openbsc/src/gprs/gtphub_ext.c')
-rw-r--r--openbsc/src/gprs/gtphub_ext.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/openbsc/src/gprs/gtphub_ext.c b/openbsc/src/gprs/gtphub_ext.c
index d739614ca..386ee1318 100644
--- a/openbsc/src/gprs/gtphub_ext.c
+++ b/openbsc/src/gprs/gtphub_ext.c
@@ -139,7 +139,13 @@ struct gtphub_peer_port *gtphub_resolve_ggsn_addr(struct gtphub *hub,
const char *imsi_str,
const char *apn_ni_str)
{
+ LOGP(DGTPHUB, LOGL_NOTICE, "Request to resolve IMSI '%s' with APN-NI '%s'\n",
+ imsi_str, apn_ni_str);
+ OSMO_ASSERT(imsi_str);
+ OSMO_ASSERT(apn_ni_str);
+
struct ggsn_lookup *lookup = talloc_zero(osmo_gtphub_ctx, struct ggsn_lookup);
+ OSMO_ASSERT(lookup);
lookup->hub = hub;