aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-12-29 00:16:27 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2017-12-29 00:16:27 +0100
commit469cbaddf50a8ddcba759214c44267bdfc720135 (patch)
tree198e13592faaadd32c3a4aa4fb0ac211f319cd1c
parent7e3a0d59e9266856d1b81b2c9e13575bd2fb133e (diff)
gprs_gmm: fix for MM ctx log filter: segfault for null MMneels/34c3_1
-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: