From b851d88d68bcb0bf1cf5dc5b5ad6d1a4579c86ca Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Wed, 26 Jul 2017 09:15:54 -0700 Subject: [PATCH] fix swallowed error in vault package. (#2993) --- vault/token_store.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vault/token_store.go b/vault/token_store.go index 51759b37b..c3cc53889 100644 --- a/vault/token_store.go +++ b/vault/token_store.go @@ -1313,6 +1313,12 @@ func (ts *TokenStore) handleTidy(req *logical.Request, data *framework.FieldData continue } te, err := ts.lookupSalted(saltedId, true) + if err != nil { + tidyErrors = multierror.Append(tidyErrors, fmt.Errorf("failed to lookup tainted ID: %v", err)) + lock.RUnlock() + continue + } + lock.RUnlock() // If token entry is not found assume that the token is not valid any