summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Santos <jrsantos@jonathanrsantos.com>2011-08-11 02:02:19 -0400
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-10-16 18:00:39 +0200
commita673076515a61265b9b9e59dd8a7234304d44404 (patch)
tree07a3bc2420c380704751667a276dfaee09c3ac85
parent9dbf27616c9700b231859ff49cf575a4fa1f8def (diff)
gprs: Also check tlli_new in sgsn_mm_ctx_by_tllizecke/santos-opensgsn
-rw-r--r--openbsc/src/gprs/gprs_sgsn.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsc/src/gprs/gprs_sgsn.c b/openbsc/src/gprs/gprs_sgsn.c
index 5e8f4d359..632187774 100644
--- a/openbsc/src/gprs/gprs_sgsn.c
+++ b/openbsc/src/gprs/gprs_sgsn.c
@@ -97,7 +97,7 @@ struct sgsn_mm_ctx *sgsn_mm_ctx_by_tlli(uint32_t tlli,
int tlli_type;
llist_for_each_entry(ctx, &sgsn_mm_ctxts, list) {
- if (tlli == ctx->tlli &&
+ if ((tlli == ctx->tlli || tlli == ctx->tlli_new) &&
ra_id_equals(raid, &ctx->ra))
return ctx;
}
@@ -114,7 +114,8 @@ struct sgsn_mm_ctx *sgsn_mm_ctx_by_tlli(uint32_t tlli,
break;
case TLLI_FOREIGN:
llist_for_each_entry(ctx, &sgsn_mm_ctxts, list) {
- if (tlli == tlli_foreign(ctx->tlli) &&
+ if ((tlli == tlli_foreign(ctx->tlli) ||
+ tlli == tlli_foreign(ctx->tlli_new)) &&
ra_id_equals(raid, &ctx->ra))
return ctx;
}