Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix nil tls_options
  • Loading branch information
Jerry Cheung committed Dec 17, 2014
commit e59543bb28f14083cf73ca2ee2f2a99d03560038
2 changes: 1 addition & 1 deletion lib/net/ldap/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def self.wrap_with_ssl(io, tls_options = {})
def setup_encryption(args)
case args[:method]
when :simple_tls
@conn = self.class.wrap_with_ssl(@conn, args[:tls_options])
@conn = self.class.wrap_with_ssl(@conn, args.fetch(:tls_options, {}))
# additional branches requiring server validation and peer certs, etc.
# go here.
when :start_tls
Expand Down