Skip to content

Commit 7dd6c3a

Browse files
committed
Merge pull request #3 from dulanov/master
Incorrect response with return_result=false in Net::LDAP.search
2 parents 028cdee + c9bd8b4 commit 7dd6c3a

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)