From a786da7266009d9186e0da0a017e11d3bf9c232b Mon Sep 17 00:00:00 2001 From: saileshvvr Date: Sat, 6 Jan 2024 11:21:17 +0530 Subject: [PATCH] UECM SMF Registration pointer de-reference --- internal/sbi/producer/ue_context_management.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/sbi/producer/ue_context_management.go b/internal/sbi/producer/ue_context_management.go index 5fff6aa..4fafc03 100644 --- a/internal/sbi/producer/ue_context_management.go +++ b/internal/sbi/producer/ue_context_management.go @@ -675,7 +675,7 @@ func RegistrationSmfRegistrationsProcedure(request *models.SmfRegistration, ueID pduID32 := int32(pduID64) var createSmfContextNon3gppParamOpts Nudr_DataRepository.CreateSmfContextNon3gppParamOpts - optInterface := optional.NewInterface(request) + optInterface := optional.NewInterface(*request) createSmfContextNon3gppParamOpts.SmfRegistration = optInterface clientAPI, err := createUDMClientToUDR(ueID) @@ -686,7 +686,6 @@ func RegistrationSmfRegistrationsProcedure(request *models.SmfRegistration, ueID resp, err := clientAPI.SMFRegistrationDocumentApi.CreateSmfContextNon3gpp(context.Background(), ueID, pduID32, &createSmfContextNon3gppParamOpts) if err != nil { - problemDetails.Cause = err.(openapi.GenericOpenAPIError).Model().(models.ProblemDetails).Cause problemDetails = &models.ProblemDetails{ Status: int32(resp.StatusCode), Cause: err.(openapi.GenericOpenAPIError).Model().(models.ProblemDetails).Cause,