aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 f1b43486..f04425d8 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: