From a7d164c28dc0f46bf8df0210194f25e9f3afc061 Mon Sep 17 00:00:00 2001 From: Sukchan Lee Date: Mon, 31 Jan 2022 23:19:26 +0900 Subject: [PATCH] [NRF] fix the crash (#1347) `reqNfInstanceId` is optional in the Subscription. So, we need to consider it. --- src/nrf/sbi-path.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nrf/sbi-path.c b/src/nrf/sbi-path.c index e16d19cca..7724c7c17 100644 --- a/src/nrf/sbi-path.c +++ b/src/nrf/sbi-path.c @@ -108,7 +108,8 @@ bool nrf_nnrf_nfm_send_nf_status_notify_all( ogs_list_for_each(&ogs_sbi_self()->subscription_list, subscription) { - if (strcmp(subscription->req_nf_instance_id, nf_instance->id) == 0) + if (subscription->req_nf_instance_id && + strcmp(subscription->req_nf_instance_id, nf_instance->id) == 0) continue; if (subscription->subscr_cond.nf_type &&