From 8d8af20ee1efe77cc99c8beaed3c588c925b0317 Mon Sep 17 00:00:00 2001 From: ionutboangiu Date: Tue, 13 May 2025 18:18:03 +0300 Subject: [PATCH] ensure MaxAbstracts reply is the right type to prevent panic while using *internal conn --- sessions/sessions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sessions/sessions.go b/sessions/sessions.go index cc321315c..94984b2ba 100644 --- a/sessions/sessions.go +++ b/sessions/sessions.go @@ -1423,7 +1423,7 @@ func (sS *SessionS) accounSMaxAbstracts(ctx *context.Context, cgrEvs map[string] } maxAbstracts = make(map[string]*utils.Decimal) for runID, cgrEv := range cgrEvs { - acntCost := new(utils.EventCharges) + var acntCost utils.EventCharges if err = sS.connMgr.Call(ctx, sS.cfg.SessionSCfg().AccountSConns, utils.AccountSv1MaxAbstracts, cgrEv, &acntCost); err != nil { return