Skip to content

Commit ebcf83e

Browse files
author
Tom Maher
committed
typecasting is hard, how do those casting directors do it???
1 parent d3887ad commit ebcf83e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/ldap.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ def normalize_encryption(args)
13521352
{ method: :simple_tls,
13531353
tls_options: OpenSSL::SSL::SSLContext::DEFAULT_PARAMS }
13541354
elsif args.is_a? Hash
1355-
if args[:tls_options].to_sym == :default
1355+
if !args[:tls_options].nil? && args[:tls_options].to_s.to_sym == :default
13561356
args.merge(tls_options: OpenSSL::SSL::SSLContext::DEFAULT_PARAMS)
13571357
else
13581358
args

0 commit comments

Comments
 (0)