From: Joe Orton Date: Mon, 19 Jan 2026 12:41:30 +0000 (+0000) Subject: * modules/ssl/ssl_engine_vars.c (ssl_var_lookup_ssl_cert_remain): X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8236d1973831c9d829a6baa064ea9824aaba827;p=thirdparty%2Fapache%2Fhttpd.git * modules/ssl/ssl_engine_vars.c (ssl_var_lookup_ssl_cert_remain): Fix off-by-one in tm_mday calculation, identified by Gemini. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1931420 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_engine_vars.c b/modules/ssl/ssl_engine_vars.c index 34989f1d24..e20a1f8dad 100644 --- a/modules/ssl/ssl_engine_vars.c +++ b/modules/ssl/ssl_engine_vars.c @@ -857,7 +857,7 @@ static const char *ssl_var_lookup_ssl_cert_remain(apr_pool_t *p, ASN1_TIME *tm) } exp.tm_mon = DIGIT2NUM(dp) - 1; - exp.tm_mday = DIGIT2NUM(dp + 2) + 1; + exp.tm_mday = DIGIT2NUM(dp + 2); exp.tm_hour = DIGIT2NUM(dp + 4); exp.tm_min = DIGIT2NUM(dp + 6); exp.tm_sec = DIGIT2NUM(dp + 8);