Actions
Bug #4344
closed[ext/openssl] BN comparison to nil fails
Description
=begin
Hi all,
this currently fails in all 1.9.2 versions including trunk:
require 'openssl'
bn = OpenSSL::BN.new("1")
bn == nil
=> in `eql?': Cannot convert into OpenSSL::BN (TypeError)
The reason is that GetBNPtr(VALUE obj) did not cover the case for obj being nil.
Patch is attached.
Regards,
Martin
=end
Files
Actions
Like0
Like0