* 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:
parent
8e1714488a
commit
7d6e215393
|
@ -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>
|
Thu Dec 4 08:29:43 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||||
|
|
||||||
* lib/webrick/server.rb (GenericServer#start): should rescue
|
* lib/webrick/server.rb (GenericServer#start): should rescue
|
||||||
|
|
|
@ -28,9 +28,7 @@ asn1time_to_time(ASN1_TIME *time)
|
||||||
struct tm tm;
|
struct tm tm;
|
||||||
VALUE argv[6];
|
VALUE argv[6];
|
||||||
|
|
||||||
if (!time) {
|
if (!time || !time->data) return Qnil;
|
||||||
ossl_raise(rb_eTypeError, "ASN1_TIME is NULL!");
|
|
||||||
}
|
|
||||||
memset(&tm, 0, sizeof(struct tm));
|
memset(&tm, 0, sizeof(struct tm));
|
||||||
|
|
||||||
switch (time->type) {
|
switch (time->type) {
|
||||||
|
|
Loading…
Reference in New Issue