aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Santos <jrsantos@jonathanrsantos.com>2011-08-11 02:02:19 -0400
committerJonathan Santos <jrsantos@jonathanrsantos.com>2011-08-11 02:56:42 -0400
commit6f3c2f1b916bc6d2b901a826ae469b70c67980cd (patch)
tree8195c4ca6dfb112568368154d0e6645a7fdeb575
parentb3994d0dd2a5944466362f507179f3f96f4e8281 (diff)
gprs: Also check tlli_new in sgsn_mm_ctx_by_tlli
-rw-r--r--src/gprs/gprs_sgsn.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gprs/gprs_sgsn.c b/src/gprs/gprs_sgsn.c
index a46711b..c2a92be 100644
--- a/src/gprs/gprs_sgsn.c
+++ b/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;
}