Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1549 from openziti/fix-panic-1548
Browse files Browse the repository at this point in the history
Fix panic in router disconnect when fingerprint is nil. Fixes #1548
  • Loading branch information
ekoby authored Jul 24, 2023
2 parents b42e26f + 62b73c2 commit 48ef719
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controller/sync_strats/sync_instant.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (
"github.com/openziti/fabric/build"
"github.com/openziti/fabric/controller/network"
"github.com/openziti/foundation/v2/debugz"
"github.com/openziti/foundation/v2/genext"
"github.com/openziti/storage/ast"
cmap "github.com/orcaman/concurrent-map/v2"
"go.etcd.io/bbolt"
Expand Down Expand Up @@ -191,7 +192,7 @@ func (strategy *InstantStrategy) RouterDisconnected(router *network.Router) {
log := pfxlog.Logger().WithField("sync_strategy", strategy.Type()).
WithField("routerId", router.Id).
WithField("routerName", router.Name).
WithField("routerFingerprint", *router.Fingerprint)
WithField("routerFingerprint", genext.OrDefault(router.Fingerprint))

existingRtx := strategy.rtxMap.Get(router.Id)

Expand Down

0 comments on commit 48ef719

Please sign in to comment.