Skip to content

Commit

Permalink
If recovering from panic ensure the cert returned is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferai committed Jun 16, 2017
1 parent 0ee100e commit f6155ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtin/logical/ssh/path_sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit f6155ea

Please sign in to comment.