Skip to content

Commit

Permalink
Fix AMF exit if Capability5GMM IE was not provided by the UE
Browse files Browse the repository at this point in the history
  • Loading branch information
abousselmi authored Jun 4, 2024
1 parent 1b5c19b commit 5fd50ba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/gmm/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -638,8 +638,7 @@ func HandleInitialRegistration(ue *context.AmfUe, anType models.AccessType) erro
if ue.RegistrationRequest.Capability5GMM != nil {
ue.Capability5GMM = *ue.RegistrationRequest.Capability5GMM
} else {
gmm_message.SendRegistrationReject(ue.RanUe[anType], nasMessage.Cause5GMMProtocolErrorUnspecified, "")
return fmt.Errorf("Capability5GMM is nil")
ue.GmmLog.Warnf("Capability5GMM is nil, Not sending a Registration Reject")
}

storeLastVisitedRegisteredTAI(ue, ue.RegistrationRequest.LastVisitedRegisteredTAI)
Expand Down Expand Up @@ -797,8 +796,7 @@ func HandleMobilityAndPeriodicRegistrationUpdating(ue *context.AmfUe, anType mod
ue.Capability5GMM = *ue.RegistrationRequest.Capability5GMM
} else {
if ue.RegistrationType5GS != nasMessage.RegistrationType5GSPeriodicRegistrationUpdating {
gmm_message.SendRegistrationReject(ue.RanUe[anType], nasMessage.Cause5GMMProtocolErrorUnspecified, "")
return fmt.Errorf("Capability5GMM is nil")
ue.GmmLog.Warnf("Capability5GMM is nil, Not sending a Registration Reject")
}
}

Expand Down

0 comments on commit 5fd50ba

Please sign in to comment.