[SBI] Fix handling "dnn" URL parameter

Split handling discovery and other URL parameters into 2 distinct sets,
to prevent bugs with overlaps.
This commit is contained in:
Bostjan Meglic 2024-03-14 15:11:09 +01:00 committed by Sukchan Lee
parent 4ee3ea08c4
commit f66c65b9cf
1 changed files with 2 additions and 1 deletions

View File

@ -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 =