Skip to content

Commit

Permalink
fix nil tls_options
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry Cheung committed Dec 17, 2014
1 parent fd2d1ed commit e59543b
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit e59543b

Please sign in to comment.