Skip to content

Commit

Permalink
Fix for NonExistingAttribute in queryparser
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Apr 21, 2022
1 parent 6c223fc commit c95cbd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ldapquery/queryparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,14 +281,14 @@ valueloop:
}

attribute := engine.A(attributename)
if attribute == 0 {
if attribute == engine.NonExistingAttribute {
return nil, nil, fmt.Errorf("Unknown attribute %v", attributename)
}

var attribute2 engine.Attribute
if attributename2 != "" {
attribute2 = engine.A(attributename2)
if attribute2 == 0 {
if attribute2 == engine.NonExistingAttribute {
return nil, nil, fmt.Errorf("Unknown attribute %v", attributename2)
}
}
Expand Down

0 comments on commit c95cbd6

Please sign in to comment.