fix regression: in RUA, do PFCP only when enabled

Tested in ttcn3, by test cases not ready for submission (would require
enabling/disabling PFCP while osmo-hnbgw is running).
ttcn3 tests in I511e758807e0512c18f3f9e0a8c4699b9a3f5992

Related: SYS#6093
Change-Id: I39b9632f8524a9f3455c1a2d7611bfe8ba07c2fd
This commit is contained in:
Neels Hofmeyr 2022-08-29 16:49:14 +02:00
parent b08b19c990
commit 9ea431123d
1 changed files with 2 additions and 1 deletions

View File

@ -291,7 +291,8 @@ int rua_to_scu(struct hnb_context *hnb,
talloc_free(message);
#if ENABLE_PFCP
} else {
} else if (hnb_gw_is_gtp_mapping_enabled(hnb->gw)) {
/* map->is_ps == true and PFCP is enabled in osmo-hnbgw.cfg */
message = talloc_zero(map, ranap_message);
rc = ranap_cn_rx_co_decode(map, message, msgb_l2(prim->oph.msg), msgb_l2len(prim->oph.msg));