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 {
|
if r := recover(); r != nil {
|
||||||
err, ok := r.(error)
|
err, ok := r.(error)
|
||||||
if ok {
|
if ok {
|
||||||
|
retCert = nil
|
||||||
retErr = err
|
retErr = err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue