Skip to content

Commit

Permalink
Set RAND only if AMF doesn't send it. (#3)
Browse files Browse the repository at this point in the history
Co-authored-by: WeiCheng <[email protected]>
  • Loading branch information
jordan0210 and WeiCheng authored Aug 9, 2021
1 parent 46ed00f commit 8f3acc4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion producer/ue_authentication.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ func UeAuthPostRequestProcedure(updateAuthenticationInfo models.AuthenticationIn
logger.UeAuthPostLog.Warningln(ausfCurrentSupi)
ausfCurrentContext := ausf_context.GetAusfUeContext(ausfCurrentSupi)
logger.UeAuthPostLog.Warningln(ausfCurrentContext.Rand)
updateAuthenticationInfo.ResynchronizationInfo.Rand = ausfCurrentContext.Rand
if updateAuthenticationInfo.ResynchronizationInfo.Rand == "" {
updateAuthenticationInfo.ResynchronizationInfo.Rand = ausfCurrentContext.Rand
}
logger.UeAuthPostLog.Warningln("Rand: ", updateAuthenticationInfo.ResynchronizationInfo.Rand)
authInfoReq.ResynchronizationInfo = updateAuthenticationInfo.ResynchronizationInfo
}
Expand Down

0 comments on commit 8f3acc4

Please sign in to comment.