fixup for 'cnpool: split up context_map_find_...'

Fix: missing allocation of SCCP FSM instance.

When submitting patch [1], i failed to notice that a small but important
fix, already present later on my branch, was needed for this patch to
work.

[1]
'cnpool: split up context_map_find_or_create_by_rua_ctx_id()'
Ifc5242547260154eb5aecd3a9d9c2aac8419e8db
c6393a1f80

Change-Id: I447f989f1d58b666bf9f1ab49ce6ba4fc5cdda80
This commit is contained in:
Neels Hofmeyr 2023-06-07 03:41:38 +02:00
parent 83dce9f7da
commit d5fe76dec8
1 changed files with 2 additions and 0 deletions

View File

@ -117,6 +117,8 @@ int context_map_set_cnlink(struct hnbgw_context_map *map, struct hnbgw_cnlink *c
map->cnlink = cnlink_selected;
map->scu_conn_id = new_scu_conn_id;
map_sccp_fsm_alloc(map);
llist_add_tail(&map->hnbgw_cnlink_entry, &cnlink_selected->map_list);
hash_add(hsu->hnbgw_context_map_by_conn_id, &map->hnbgw_sccp_user_entry, new_scu_conn_id);