aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs/gprs_gmm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gprs/gprs_gmm.c')
-rw-r--r--src/gprs/gprs_gmm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gprs/gprs_gmm.c b/src/gprs/gprs_gmm.c
index f1b434861..f04425d89 100644
--- a/src/gprs/gprs_gmm.c
+++ b/src/gprs/gprs_gmm.c
@@ -182,7 +182,8 @@ int sgsn_ranap_iu_event(struct ranap_ue_conn_ctx *ctx, enum ranap_iu_event_type
return rc; \
}
- log_set_context(LOG_CTX_GPRS_SUBSCR, mm->subscr);
+ if (mm)
+ log_set_context(LOG_CTX_GPRS_SUBSCR, mm->subscr);
switch (type) {
case RANAP_IU_EVENT_RAB_ASSIGN: