[PCF] Fix crash when both IPv4 and IPv6 Frame Routes are set

When both IPv4 and IPv6 Frame Routes are set, IPv4 Frame Route list
was subsequently cleared.
When UE tried to deregister, PCF would crash when it tried to free the
Frame Routing list.
This commit is contained in:
Bostjan Meglic 2023-03-14 07:26:22 +00:00 committed by Sukchan Lee
parent 7c87389b16
commit 5f377d0126
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ bool pcf_npcf_smpolicycontrol_handle_create(pcf_sess_t *sess,
if (SmPolicyContextData->ipv6_frame_route_list) {
OpenAPI_lnode_t *node = NULL;
OpenAPI_clear_and_free_string_list(sess->ipv4_frame_route_list);
OpenAPI_clear_and_free_string_list(sess->ipv6_frame_route_list);
sess->ipv6_frame_route_list = OpenAPI_list_create();
OpenAPI_list_for_each(SmPolicyContextData->ipv6_frame_route_list, node) {
if (!node->data)