Skip to content

Commit 66ba7f6

Browse files
readding check for ASN1::Null value on der encoding
1 parent 7bca5d7 commit 66ba7f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/openssl/asn1.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ class Null < Primitive
254254

255255
# :nodoc:
256256
def der_value
257+
raise ASN1Error, "nil expected" unless @value == nil
257258
end
258259
end
259260

0 commit comments

Comments
 (0)