From 07f64bdfb9da2abcfd0b77ee43c564e262a46fe3 Mon Sep 17 00:00:00 2001 From: Guilherme William Date: Tue, 15 May 2018 13:42:37 -0300 Subject: [PATCH] bugfix result_code on connection lost --- lib/net/ldap/connection.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/net/ldap/connection.rb b/lib/net/ldap/connection.rb index 61aacb53..b01984f4 100644 --- a/lib/net/ldap/connection.rb +++ b/lib/net/ldap/connection.rb @@ -467,6 +467,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 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy