diff options
author | Jonathan Santos <jrsantos@jonathanrsantos.com> | 2011-07-31 10:27:52 -0400 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-10-16 18:00:16 +0200 |
commit | 0648e5df760eb7062db9805669aecb891cc64bed (patch) | |
tree | 6a181481f1cd0f51f011ef42fd19efa6dff1aeee | |
parent | 95940c25bfc5d18c9c25e9915cbd44f1de53c641 (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-- | openbsc/src/gprs/gprs_sgsn.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/openbsc/src/gprs/gprs_sgsn.c b/openbsc/src/gprs/gprs_sgsn.c index 85f710500..5e8f4d359 100644 --- a/openbsc/src/gprs/gprs_sgsn.c +++ b/openbsc/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; } } |