Skip to content

Commit 9daa954

Browse files
authored
Merge pull request #308 from guilhermewop/gw-bugfix-result-code
Fix to "undefined method 'result_code'"
2 parents d78dc1e + 07f64bd commit 9daa954

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/net/ldap/connection.rb

+4
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,10 @@ def search(args = nil)
467467
end
468468
end
469469

470+
if result_pdu.nil?
471+
raise Net::LDAP::ResponseMissingOrInvalidError, "response missing"
472+
end
473+
470474
# count number of pages of results
471475
payload[:page_count] ||= 0
472476
payload[:page_count] += 1

0 commit comments

Comments
 (0)