mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 18:17:55 +00:00
plugin/grpc: Fix a panic when a transport error occurs during a list (#4244)
This commit is contained in:
committed by
Jeff Mitchell
parent
7c06e9610f
commit
a4fc5a40cd
@@ -27,7 +27,7 @@ func (s *GRPCStorageClient) List(ctx context.Context, prefix string) ([]string,
|
||||
Prefix: prefix,
|
||||
}, largeMsgGRPCCallOpts...)
|
||||
if err != nil {
|
||||
return reply.Keys, err
|
||||
return []string{}, err
|
||||
}
|
||||
if reply.Err != "" {
|
||||
return reply.Keys, errors.New(reply.Err)
|
||||
|
||||
Reference in New Issue
Block a user