Skip to content

Commit c9bd8b4

Browse files
author
dulanov
committed
fix incorrect respone with return_result=false
1 parent 028cdee commit c9bd8b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/ldap.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ def search(args = {})
642642
end
643643
end
644644

645-
@result == 0 and result_set
645+
result_set || @result == 0
646646
end
647647

648648
# #bind connects to an LDAP server and requests authentication based on

0 commit comments

Comments
 (0)