mirror of
https://github.com/open5gs/open5gs.git
synced 2025-11-02 04:53:37 +00:00
- Backup sensitive security context fields (e.g. xres, kasme, rand, autn, keys, counters) when transitioning from REGISTERED state. - Set the can_restore_security_context flag in common_register_state() based on whether the transition originates from a REGISTERED or de-registered state. - In emm_state_authentication(), restore the security context and revert to the REGISTERED state on authentication failure only if restoration is allowed; otherwise, transition to an exception state. - Remove the redundant unconditional state transition in the cleanup block to prevent overriding a valid restoration.