Skip to content

Commit

Permalink
* ext/openssl/ossl_asn1.c (asn1time_to_time): should check that
Browse files Browse the repository at this point in the history
	  the underlying value of ASN1_TIME isn't NULL.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
gotoyuzo committed Dec 4, 2003
1 parent 8e17144 commit 7d6e215
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Thu Dec 4 09:12:43 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>

* ext/openssl/ossl_asn1.c (asn1time_to_time): should check that
the underlying value of ASN1_TIME isn't NULL.

Thu Dec 4 08:29:43 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>

* lib/webrick/server.rb (GenericServer#start): should rescue
Expand Down
4 changes: 1 addition & 3 deletions ext/openssl/ossl_asn1.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ asn1time_to_time(ASN1_TIME *time)
struct tm tm;
VALUE argv[6];

if (!time) {
ossl_raise(rb_eTypeError, "ASN1_TIME is NULL!");
}
if (!time || !time->data) return Qnil;
memset(&tm, 0, sizeof(struct tm));

switch (time->type) {
Expand Down

0 comments on commit 7d6e215

Please sign in to comment.