Skip to content

Commit

Permalink
Fix PFCP session modification during handover sent to the wrong UPF
Browse files Browse the repository at this point in the history
  • Loading branch information
louisroyer committed Jan 13, 2025
1 parent 2aa59f7 commit b24307a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/smf/smf.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,11 @@ func (smf *Smf) UpdateSessionDownlinkContext(ctx context.Context, ueCtrl jsonapi
if err != nil {
return err
}
upf_ctrl := slice.(*Slice).Upfs[len(slice.(*Slice).Upfs)-1]

if len(slice.(*Slice).Upfs) == 0 {
return ErrUpfNotFound
}
upf_ctrl := slice.(*Slice).Upfs[0] // upf-i
upf_any, ok := smf.upfs.Load(upf_ctrl)
if !ok {
return ErrUpfNotFound
Expand Down

0 comments on commit b24307a

Please sign in to comment.