If recovering from panic ensure the cert returned is nil
This commit is contained in:
parent
60d743a5b9
commit
be383217b6
|
@ -388,6 +388,7 @@ func (b *creationBundle) sign() (retCert *ssh.Certificate, retErr error) {
|
|||
if r := recover(); r != nil {
|
||||
err, ok := r.(error)
|
||||
if ok {
|
||||
retCert = nil
|
||||
retErr = err
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue