]> granicus.if.org Git - apache/commitdiff
* modules/ssl/ssl_util_stapling.c (stapling_cache_response): Use
authorJoe Orton <jorton@apache.org>
Wed, 28 Oct 2009 14:05:09 +0000 (14:05 +0000)
committerJoe Orton <jorton@apache.org>
Wed, 28 Oct 2009 14:05:09 +0000 (14:05 +0000)
  apr_time_now() rather than time().

Reported by: rpluem.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@830551 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_util_stapling.c

index a703f259dfbaa0b87d1224811c539f29d367eb75..e622f721893863987dd2dbb6fa70f1a40d06e99e 100644 (file)
@@ -216,7 +216,7 @@ static BOOL stapling_cache_response(server_rec *s, modssl_ctx_t *mctx,
         timeout = mctx->stapling_errcache_timeout;
     }
 
-    timeout += time(NULL);
+    timeout += apr_time_sec(apr_time_now());
 
     i2d_OCSP_RESPONSE(rsp, &p);