From 54df739d731c7a3cd812bdbdd1a8f0a08fa2a31d Mon Sep 17 00:00:00 2001 From: ming-hsien Date: Tue, 1 Oct 2024 13:09:38 +0000 Subject: [PATCH] fix: pointer Comparison Logic Error --- internal/sbi/processor/pdu_session.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/sbi/processor/pdu_session.go b/internal/sbi/processor/pdu_session.go index 38e31454..9f189f16 100644 --- a/internal/sbi/processor/pdu_session.go +++ b/internal/sbi/processor/pdu_session.go @@ -5,6 +5,7 @@ import ( "errors" "net" "net/http" + "reflect" "github.com/antihax/optional" "github.com/gin-gonic/gin" @@ -457,7 +458,7 @@ func (p *Processor) HandlePDUSessionSMContextUpdate( smContext.UpCnxState = body.JsonData.UpCnxState // UE location change is a charging event // TODO: This is not tested yet - if smContext.UeLocation != body.JsonData.UeLocation { + if !reflect.DeepEqual(smContext.UeLocation, body.JsonData.UeLocation) { // All rating group related to this Pdu session should send charging request for _, dataPath := range tunnel.DataPathPool { if dataPath.Activated {