Skip to content

Commit

Permalink
Fix VA check for duplicate perspectives
Browse files Browse the repository at this point in the history
  • Loading branch information
jsha committed Nov 15, 2024
1 parent d55e953 commit 6eaf282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion va/va.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func NewValidationAuthorityImpl(

for i, va1 := range remoteVAs {
for j, va2 := range remoteVAs {
if i != j && va1.Perspective == va2.Perspective {
if i != j && va1.Perspective == va2.Perspective && va1.Perspective != "" {
return nil, fmt.Errorf("duplicate remote VA perspective %q", va1.Perspective)
}
}
Expand Down

0 comments on commit 6eaf282

Please sign in to comment.