Skip to content

Commit 7b48ab4

Browse files
authored
Merge pull request free5gc#128 from ming-hsien/fix/ptrComparisonErr
fix: pointer Comparison Logic Error
2 parents 0e55302 + 54df739 commit 7b48ab4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/sbi/processor/pdu_session.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"errors"
66
"net"
77
"net/http"
8+
"reflect"
89

910
"github.com/antihax/optional"
1011
"github.com/gin-gonic/gin"
@@ -457,7 +458,7 @@ func (p *Processor) HandlePDUSessionSMContextUpdate(
457458
smContext.UpCnxState = body.JsonData.UpCnxState
458459
// UE location change is a charging event
459460
// TODO: This is not tested yet
460-
if smContext.UeLocation != body.JsonData.UeLocation {
461+
if !reflect.DeepEqual(smContext.UeLocation, body.JsonData.UeLocation) {
461462
// All rating group related to this Pdu session should send charging request
462463
for _, dataPath := range tunnel.DataPathPool {
463464
if dataPath.Activated {

0 commit comments

Comments
 (0)