* ext/openssl/ossl_asn1.c (asn1time_to_time): should check that

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
This commit is contained in:
gotoyuzo 2003-12-04 00:21:31 +00:00
parent 8e1714488a
commit 7d6e215393
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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) {