Skip to content

Commit

Permalink
Properly continue if cert entry is nil when tidying
Browse files Browse the repository at this point in the history
Fixes #5931
  • Loading branch information
jefferai committed Dec 11, 2018
1 parent 12e3cf5 commit 2525af7
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 2525af7

Please sign in to comment.