If recovering from panic ensure the cert returned is nil

This commit is contained in:
Jeff Mitchell 2017-06-16 18:18:15 -04:00
parent 60d743a5b9
commit be383217b6

View file

@ -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
}
}