From b1eec4387fd56d4cf1e3d844bbfbad8f2a8ed537 Mon Sep 17 00:00:00 2001 From: Kanika Gupta Date: Mon, 23 Nov 2020 16:27:38 +0530 Subject: [PATCH] fix for undefined method for write exception Date: Mon Nov 23 16:27:38 2020 +0530 Committer: Kanika Gupta --- lib/net/ldap/connection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/ldap/connection.rb b/lib/net/ldap/connection.rb index 1f900b6e..5315b31c 100644 --- a/lib/net/ldap/connection.rb +++ b/lib/net/ldap/connection.rb @@ -690,7 +690,7 @@ def delete(args) # # Typically a TCPSocket, but can be a OpenSSL::SSL::SSLSocket def socket - return @conn if defined? @conn + return @conn if defined?(@conn) && !@conn.nil? # First refactoring uses the existing methods open_connection and # prepare_socket to set @conn. Next cleanup would centralize connection 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