From f66c65b9cf4d66fecd8a32f5e71b269e74f425b3 Mon Sep 17 00:00:00 2001 From: Bostjan Meglic Date: Thu, 14 Mar 2024 15:11:09 +0100 Subject: [PATCH] [SBI] Fix handling "dnn" URL parameter Split handling discovery and other URL parameters into 2 distinct sets, to prevent bugs with overlaps. --- lib/sbi/message.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/sbi/message.c b/lib/sbi/message.c index cedb76be6..3e663a144 100644 --- a/lib/sbi/message.c +++ b/lib/sbi/message.c @@ -856,9 +856,10 @@ int ogs_sbi_parse_request( ogs_uint64_from_string(v); discovery_option_presence = true; } + } /* URL Query Parameter */ - } else if (!strcmp(ogs_hash_this_key(hi), OGS_SBI_PARAM_NF_ID)) { + if (!strcmp(ogs_hash_this_key(hi), OGS_SBI_PARAM_NF_ID)) { message->param.nf_id = ogs_hash_this_val(hi); } else if (!strcmp(ogs_hash_this_key(hi), OGS_SBI_PARAM_NF_TYPE)) { message->param.nf_type =