From fd7223f7e64673b62b80103191b1bad22c7d4383 Mon Sep 17 00:00:00 2001 From: Jonathan Santos Date: Sun, 31 Jul 2011 10:27:52 -0400 Subject: gprs: Fix premature TLLI change During the GPRS Attach procedure, the SGSN was changing the TLLI to the new TLLI when sending the second Identity Request. This was caused by the sgsn_mm_ctx_by_tlli() function changing the TLLI. It is usually bad form to have a lookup function change values. --- src/gprs/gprs_sgsn.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gprs/gprs_sgsn.c b/src/gprs/gprs_sgsn.c index 443655418..a46711b45 100644 --- a/src/gprs/gprs_sgsn.c +++ b/src/gprs/gprs_sgsn.c @@ -108,7 +108,6 @@ struct sgsn_mm_ctx *sgsn_mm_ctx_by_tlli(uint32_t tlli, llist_for_each_entry(ctx, &sgsn_mm_ctxts, list) { if ((ctx->p_tmsi | 0xC0000000) == tlli || (ctx->p_tmsi_old && (ctx->p_tmsi_old | 0xC0000000) == tlli)) { - ctx->tlli = tlli; return ctx; } } -- cgit v1.2.3