diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2014-09-23 18:48:44 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-09-25 14:24:55 +0200 |
commit | f8070f4793a748cad6deefeb1e38fe7f8a193293 (patch) | |
tree | de7e3ccbf73324b076def0549a22ec8baf297e6f | |
parent | 465531403c0f95968854a3667060b1a106a939f6 (diff) |
gprs: Move log message about mm context after NULL check
Fixes: CID#1240205
-rw-r--r-- | openbsc/src/gprs/gprs_gmm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsc/src/gprs/gprs_gmm.c b/openbsc/src/gprs/gprs_gmm.c index a4305e8f3..ec639dc1b 100644 --- a/openbsc/src/gprs/gprs_gmm.c +++ b/openbsc/src/gprs/gprs_gmm.c @@ -582,14 +582,14 @@ static int gsm48_rx_gmm_id_resp(struct sgsn_mm_ctx *ctx, struct msgb *msg) char mi_string[GSM48_MI_SIZE]; gsm48_mi_to_string(mi_string, sizeof(mi_string), &gh->data[1], gh->data[0]); - LOGMMCTXP(LOGL_DEBUG, ctx, "-> GMM IDENTITY RESPONSE: mi_type=0x%02x MI(%s)\n", - mi_type, mi_string); - if (!ctx) { DEBUGP(DMM, "from unknown TLLI 0x%08x?!? This should not happen\n", msgb_tlli(msg)); return -EINVAL; } + LOGMMCTXP(LOGL_DEBUG, ctx, "-> GMM IDENTITY RESPONSE: mi_type=0x%02x MI(%s)\n", + mi_type, mi_string); + if (mi_type == ctx->t3370_id_type) mmctx_timer_stop(ctx, 3370); |