From b8bcfac53106332ce10ec04dfe8e889abd2814a8 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 12 Jul 2023 10:21:35 +0300 Subject: [PATCH] [#510] treesvc: Fix panic in bearer token processing Signed-off-by: Evgenii Stratonikov --- pkg/services/tree/signature.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/tree/signature.go b/pkg/services/tree/signature.go index 63485a70..b932f6de 100644 --- a/pkg/services/tree/signature.go +++ b/pkg/services/tree/signature.go @@ -110,7 +110,7 @@ func (s *Service) verifyClient(req message, cid cidSDK.ID, rawBearer []byte, op } tb = *tbCore.Value - if bt.Impersonate() { + if tableFromBearer && bt.Impersonate() { signer = bt.SigningKeyBytes() } }