diff --git a/lib/net/ldap.rb b/lib/net/ldap.rb index 9761f46d..b0105fcf 100644 --- a/lib/net/ldap.rb +++ b/lib/net/ldap.rb @@ -642,7 +642,7 @@ def search(args = {}) end end - @result == 0 and result_set + result_set || @result == 0 end # #bind connects to an LDAP server and requests authentication based on