mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-28 04:10:44 -04:00
plugin/gRPC: fix panic when special paths are not set (#3946)
* plugin/gRPC: fix panic when special paths are not set * Remove comment
This commit is contained in:
parent
f64bcf1a9a
commit
5ccb34744e
1 changed files with 4 additions and 1 deletions
|
|
@ -73,12 +73,15 @@ func (b *backendGRPCPluginClient) HandleRequest(ctx context.Context, req *logica
|
|||
}
|
||||
|
||||
func (b *backendGRPCPluginClient) SpecialPaths() *logical.Paths {
|
||||
// Timeout the connection
|
||||
reply, err := b.client.SpecialPaths(b.doneCtx, &pb.Empty{})
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
if reply.Paths == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
return &logical.Paths{
|
||||
Root: reply.Paths.Root,
|
||||
Unauthenticated: reply.Paths.Unauthenticated,
|
||||
|
|
|
|||
Loading…
Reference in a new issue