Skip to content

Commit

Permalink
fix: missing error return
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcat-118 committed Jul 11, 2024
1 parent 6a5e48e commit 1267c15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/radius/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ func HandleRadiusAccessRequest(udpConn *net.UDPConn, tngfAddr, ueAddr *net.UDPAd
err = eap.Unmarshal(eapMessage)
if err != nil {
radiusLog.Errorf("[EAP] EAP5GNAS unmarshal error: %+v", err)
return
}
if eap.Code != radius_message.EAPCodeResponse {
radiusLog.Error("[EAP] Received an EAP payload with code other than response. Drop the payload.")
Expand Down Expand Up @@ -194,7 +195,7 @@ func HandleRadiusAccessRequest(udpConn *net.UDPConn, tngfAddr, ueAddr *net.UDPAd
}

// Send Initial UE Message or Uplink NAS Transport
if session.ThisUE == nil { // if anParameters != nil {
if session.ThisUE == nil {
// print AN parameters
radiusLog.Debug("Select AMF with the following AN parameters:")
if anParameters.GUAMI == nil {
Expand Down

0 comments on commit 1267c15

Please sign in to comment.