aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2016-01-14 15:10:05 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2016-01-14 15:10:05 +0100
commitdefd29912c769be8e187ce7c68adfe20a47a622f (patch)
tree9500456473a381491f4506c5307d1cae1290401c
parent0118839829aed7439364e3526845683149cce021 (diff)
context_map: Have one mapping per UE/cnlink combination
-rw-r--r--src/context_map.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/context_map.c b/src/context_map.c
index 7cfc7e6..22eb605 100644
--- a/src/context_map.c
+++ b/src/context_map.c
@@ -66,6 +66,9 @@ context_map_alloc_by_hnb(struct hnb_context *hnb, uint32_t rua_ctx_id,
llist_for_each_entry(map, &hnb->map_list, hnb_list) {
if (map->state != MAP_S_ACTIVE)
continue;
+ if (map->cn_link != cn_if_new) {
+ continue;
+ }
if (map->rua_ctx_id == rua_ctx_id) {
return map;
}