Unverified Commit 5ccb3474 authored by Brian Kassouf's avatar Brian Kassouf Committed by GitHub
Browse files

plugin/gRPC: fix panic when special paths are not set (#3946)

* plugin/gRPC: fix panic when special paths are not set

* Remove comment
parent f64bcf1a
Showing with 4 additions and 1 deletion
+4 -1
......@@ -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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment