summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGOTOU Yuuzou <gotoyuzo@notwork.org>2003-07-06 05:17:14 +0000
committerGOTOU Yuuzou <gotoyuzo@notwork.org>2003-07-06 05:17:14 +0000
commit216b2facfd3a5dd78a23296e2e97e0a6e3f2daf9 (patch)
tree5ec1a5c53bd621a78c1a6a71fd4affa67994d530
parent1a3209888196caa9f1898fbde83a7dc95db75667 (diff)
downloadruby-openssl-history-216b2facfd3a5dd78a23296e2e97e0a6e3f2daf9.tar.gz
*** empty log message ***
-rw-r--r--ChangeLog3
-rw-r--r--ossl_ocsp.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 03485f2..bb87d0c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+Sun, 06 Jul 2003 14:15:36 +0900 -- GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * ossl_ocsp.c: should not assign NULL to revtime (revtime is a VALUE).
+
Sun, 06 Jul 2003 13:20:04 +0900 -- GOTOU Yuuzou <gotoyuzo@notwork.org>
* ossl_x509store.c:
- ossl_x509store_add_cert(): should not duplicate added cert.
diff --git a/ossl_ocsp.c b/ossl_ocsp.c
index 941acbe..3041d4d 100644
--- a/ossl_ocsp.c
+++ b/ossl_ocsp.c
@@ -461,8 +461,7 @@ ossl_ocspbres_add_status(VALUE self, VALUE cid, VALUE status,
error = 0;
ths = nxt = rev = NULL;
- if(NIL_P(revtime)) revtime = NULL;
- else{
+ if(!NIL_P(revtime)){
tmp = rb_protect(rb_Integer, revtime, &rstatus);
if(rstatus) goto err;
rev = X509_gmtime_adj(NULL, NUM2INT(tmp));