Skip to content

Commit

Permalink
fix: add range check
Browse files Browse the repository at this point in the history
  • Loading branch information
reki9185 committed Feb 24, 2025
1 parent d443476 commit 7d3bc59
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/sbi/consumer/smf_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,10 @@ func (s *nsmfService) SendCreateSmContextRequest(ue *amf_context.AmfUe, smContex
location := postSmContextReponse.Location

parts := strings.Split(location, "/")
location = parts[len(parts)-1]

if len(parts) > 0 {
location = parts[len(parts)-1]
}

smContextRef = "urn:uuid:" + location
} else {
Expand Down

0 comments on commit 7d3bc59

Please sign in to comment.