Skip to content

Commit

Permalink
[SBI] Fix handling "dnn" URL parameter
Browse files Browse the repository at this point in the history
Split handling discovery and other URL parameters into 2 distinct sets,
to prevent bugs with overlaps.
  • Loading branch information
bmeglic authored and acetcom committed Mar 18, 2024
1 parent 4ee3ea0 commit f66c65b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/sbi/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit f66c65b

Please sign in to comment.