aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Santos <jrsantos@jonathanrsantos.com>2011-07-31 10:27:52 -0400
committerJonathan Santos <jrsantos@jonathanrsantos.com>2011-07-31 10:27:52 -0400
commitfd7223f7e64673b62b80103191b1bad22c7d4383 (patch)
tree6df30194d2a8400d22cdeb53eeecdb9e709f0021
parent7cfdff76caa08dab758c3a19d7945439b5d01a19 (diff)
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.
-rw-r--r--src/gprs/gprs_sgsn.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gprs/gprs_sgsn.c b/src/gprs/gprs_sgsn.c
index 4436554..a46711b 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;
}
}