Skip to content

Commit e59543b

Browse files
author
Jerry Cheung
committed
fix nil tls_options
1 parent fd2d1ed commit e59543b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/ldap/connection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def self.wrap_with_ssl(io, tls_options = {})
9191
def setup_encryption(args)
9292
case args[:method]
9393
when :simple_tls
94-
@conn = self.class.wrap_with_ssl(@conn, args[:tls_options])
94+
@conn = self.class.wrap_with_ssl(@conn, args.fetch(:tls_options, {}))
9595
# additional branches requiring server validation and peer certs, etc.
9696
# go here.
9797
when :start_tls

0 commit comments

Comments
 (0)