Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rlue committed Jun 26, 2018
1 parent d78dc1e commit e662a8c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/net/ldap/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ def open_connection(server)

module GetbyteForSSLSocket
def getbyte
getc.ord
(nextbyte = read(1)) or return
nextbyte.ord
end
end

Expand Down Expand Up @@ -467,6 +468,10 @@ def search(args = nil)
end
end

if result_pdu.nil?
raise Net::LDAP::ResponseMissingOrInvalidError, "response missing"
end

# count number of pages of results
payload[:page_count] ||= 0
payload[:page_count] += 1
Expand Down

0 comments on commit e662a8c

Please sign in to comment.