From: Joe Orton Date: Wed, 28 Oct 2009 14:05:09 +0000 (+0000) Subject: * modules/ssl/ssl_util_stapling.c (stapling_cache_response): Use X-Git-Tag: 2.3.3~115 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7dc3e1fa62ab79a872d29661c0ac197bd0ccab98;p=thirdparty%2Fapache%2Fhttpd.git * modules/ssl/ssl_util_stapling.c (stapling_cache_response): Use 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 --- diff --git a/modules/ssl/ssl_util_stapling.c b/modules/ssl/ssl_util_stapling.c index a703f259dfb..e622f721893 100644 --- a/modules/ssl/ssl_util_stapling.c +++ b/modules/ssl/ssl_util_stapling.c @@ -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);