Skip to content

Commit 8d2b474

Browse files
committed
client: log warning when SecureConfig is nil
1 parent a02e5c7 commit 8d2b474

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,9 @@ func (c *Client) Start() (addr net.Addr, err error) {
547547
return nil, err
548548
}
549549

550-
if c.config.SecureConfig != nil {
550+
if c.config.SecureConfig == nil {
551+
c.logger.Warn("plugin configured with a nil SecureConfig")
552+
} else {
551553
if ok, err := c.config.SecureConfig.Check(cmd.Path); err != nil {
552554
return nil, fmt.Errorf("error verifying checksum: %s", err)
553555
} else if !ok {

0 commit comments

Comments
 (0)