From d1f3ce304dad525c4aecb1cdcf767f989cb00977 Mon Sep 17 00:00:00 2001 From: Sukchan Lee Date: Sat, 1 Jul 2023 23:20:56 +0900 Subject: [PATCH] Follow-up on #2399 --- src/amf/context.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/amf/context.c b/src/amf/context.c index 35c447047..7205677b0 100644 --- a/src/amf/context.c +++ b/src/amf/context.c @@ -2187,7 +2187,6 @@ void amf_sbi_select_nf( if ((nf_instance->nf_type == OpenAPI_nf_type_SMF) && (ogs_list_count(&nf_instance->nf_info_list) > 0)) { - bool match = false; ogs_list_for_each(&nf_instance->nf_info_list, nf_info) { if (nf_info->nf_type != nf_instance->nf_type) @@ -2195,11 +2194,10 @@ void amf_sbi_select_nf( if (check_smf_info(nf_info, sess) == false) continue; - match = true; break; } - if (!match) + if (!nf_info) continue; }