[SBI] FQDN bug from talloc (#1328)
This commit is contained in:
parent
b3ac5b35eb
commit
8955fdcd5d
|
@ -64,8 +64,9 @@ OpenAPI_nf_profile_t *ogs_nnrf_nfm_build_nf_profile(
|
|||
memset(fqdn, 0, sizeof(fqdn));
|
||||
fqdn_len = ogs_fqdn_build(fqdn,
|
||||
nf_instance->fqdn, strlen(nf_instance->fqdn));
|
||||
NFProfile->fqdn = ogs_memdup(fqdn, fqdn_len);
|
||||
NFProfile->fqdn = ogs_memdup(fqdn, fqdn_len+1);
|
||||
ogs_expect_or_return_val(NFProfile->fqdn, NULL);
|
||||
NFProfile->fqdn[fqdn_len] = 0;
|
||||
|
||||
ogs_trace("FQDN[%s]", nf_instance->fqdn);
|
||||
}
|
||||
|
@ -184,8 +185,9 @@ OpenAPI_nf_profile_t *ogs_nnrf_nfm_build_nf_profile(
|
|||
memset(fqdn, 0, sizeof(fqdn));
|
||||
fqdn_len = ogs_fqdn_build(fqdn,
|
||||
nf_service->fqdn, strlen(nf_service->fqdn));
|
||||
NFService->fqdn = ogs_memdup(fqdn, fqdn_len);
|
||||
NFService->fqdn = ogs_memdup(fqdn, fqdn_len+1);
|
||||
ogs_expect_or_return_val(NFService->fqdn, NULL);
|
||||
NFService->fqdn[fqdn_len] = 0;
|
||||
}
|
||||
|
||||
IpEndPointList = OpenAPI_list_create();
|
||||
|
|
|
@ -227,8 +227,9 @@ bool bsf_nbsf_management_handle_pcf_binding(
|
|||
memset(fqdn, 0, sizeof(fqdn));
|
||||
fqdn_len = ogs_fqdn_build(fqdn,
|
||||
sess->pcf_fqdn, strlen(sess->pcf_fqdn));
|
||||
SendPcfBinding.pcf_fqdn = ogs_memdup(fqdn, fqdn_len);
|
||||
SendPcfBinding.pcf_fqdn = ogs_memdup(fqdn, fqdn_len+1);
|
||||
ogs_assert(SendPcfBinding.pcf_fqdn);
|
||||
SendPcfBinding.pcf_fqdn[fqdn_len] = 0;
|
||||
}
|
||||
|
||||
for (i = 0; i < sess->num_of_pcf_ip; i++) {
|
||||
|
|
|
@ -69,8 +69,9 @@ ogs_sbi_request_t *pcf_nbsf_management_build_register(
|
|||
memset(fqdn, 0, sizeof(fqdn));
|
||||
fqdn_len = ogs_fqdn_build(fqdn,
|
||||
nf_service->fqdn, strlen(nf_service->fqdn));
|
||||
PcfBinding.pcf_fqdn = ogs_memdup(fqdn, fqdn_len);
|
||||
PcfBinding.pcf_fqdn = ogs_memdup(fqdn, fqdn_len+1);
|
||||
ogs_expect_or_return_val(PcfBinding.pcf_fqdn, NULL);
|
||||
PcfBinding.pcf_fqdn[fqdn_len] = 0;
|
||||
}
|
||||
|
||||
PcfIpEndPointList = OpenAPI_list_create();
|
||||
|
|
Loading…
Reference in New Issue