From 62b73c231c88a0d66c8db4acdb7ef7e91bc8d93d Mon Sep 17 00:00:00 2001 From: Paul Lorenz Date: Thu, 13 Jul 2023 12:03:38 -0400 Subject: [PATCH] Fix panic in router disconnect when fingerprint is nil. Fixes #1548 --- controller/sync_strats/sync_instant.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controller/sync_strats/sync_instant.go b/controller/sync_strats/sync_instant.go index c4ab62a34..e1e171a17 100644 --- a/controller/sync_strats/sync_instant.go +++ b/controller/sync_strats/sync_instant.go @@ -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" @@ -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)