sgsn: Only look at TLLIs in sgsn_mm_ctx_by_tlli

Currently the code also matches the TLLI against LOCAL and FOREIGN
mappings of the P-TMSI, thus eventually finding MM contexts not
consistent with the TLLI (both tlli and tlli_new differ). On
the other hand, tlli_new is not checked at all.

This commit changes the function to only look at mmctx->tlli,
mmctx->tlli_new, and the routing area.

Sponsored-by: On-Waves ehf
2 files changed
tree: 1ca657707e55a05ece7410e17de479a21aec63d9
  1. debian/
  2. openbsc/
  3. .gitignore