Skip to content

Commit

Permalink
Merge pull request #32 from saileshvvr/uecm_smf_registration
Browse files Browse the repository at this point in the history
UECM SMF Registration pointer de-reference
  • Loading branch information
ianchen0119 authored Jan 15, 2024
2 parents adfd203 + a786da7 commit 3f54f76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/sbi/producer/ue_context_management.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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,
Expand Down

0 comments on commit 3f54f76

Please sign in to comment.