Skip to content

Commit

Permalink
Properly continue if cert entry is nil when tidying (#5933)
Browse files Browse the repository at this point in the history
Fixes #5931
  • Loading branch information
jefferai authored Dec 11, 2018
1 parent 12e3cf5 commit e5ffd6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtin/logical/pki/path_tidy.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ func (b *backend) pathTidyWrite(ctx context.Context, req *logical.Request, d *fr
if err := req.Storage.Delete(ctx, "certs/"+serial); err != nil {
return errwrap.Wrapf(fmt.Sprintf("error deleting nil entry with serial %s: {{err}}", serial), err)
}
continue
}

if certEntry.Value == nil || len(certEntry.Value) == 0 {
Expand Down

0 comments on commit e5ffd6a

Please sign in to comment.