prevent nil pointer dereference by defining IsUserAuthority. This occurred as a regression when we updated the crypto library in v1.4.0

This commit is contained in:
Megan Marsh 2019-06-11 13:22:03 -07:00
parent 0a74a6ae10
commit 6dcff18d36
2 changed files with 2 additions and 0 deletions

View File

@ -241,6 +241,7 @@ func (p *Provisioner) Provision(ctx context.Context, ui packer.Ui, comm packer.C
return nil, nil return nil, nil
}, },
IsUserAuthority: func(k ssh.PublicKey) bool { return true },
} }
config := &ssh.ServerConfig{ config := &ssh.ServerConfig{

View File

@ -234,6 +234,7 @@ func (p *Provisioner) Provision(ctx context.Context, ui packer.Ui, comm packer.C
return nil, nil return nil, nil
}, },
IsUserAuthority: func(k ssh.PublicKey) bool { return true },
} }
config := &ssh.ServerConfig{ config := &ssh.ServerConfig{