From: Jim Jagielski Date: Thu, 2 Jul 2026 19:53:40 +0000 (+0000) Subject: *) modules/ssl/ssl_engine_vars.c (ssl_var_lookup_ssl_cert_remain): X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=35a154e4b8a3b11a0e68853fd6b5402c52c92404;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/branches/2.4.x@1935816 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/STATUS b/STATUS index 6f5c3a2acf..183006a768 100644 --- a/STATUS +++ b/STATUS @@ -163,12 +163,6 @@ RELEASE SHOWSTOPPERS: PATCHES ACCEPTED TO BACKPORT FROM TRUNK: [ start all new proposals below, under PATCHES PROPOSED. ] - *) modules/ssl/ssl_engine_vars.c (ssl_var_lookup_ssl_cert_remain): - Fix off-by-one in tm_mday calculation, identified by Gemini. - trunk patch: https://svn.apache.org/1931420 - 2.4.x patch: svn merge -c 1931420 ^/httpd/httpd/trunk . - +1: rjung, jorton, jim - *) Constify static arrays of string constants. trunk patch: https://svn.apache.org/r1933659 2.4.x patch: svn merge -c 1933659 ^/httpd/httpd/trunk . diff --git a/modules/ssl/ssl_engine_vars.c b/modules/ssl/ssl_engine_vars.c index 4307815eec..eb99421ae7 100644 --- a/modules/ssl/ssl_engine_vars.c +++ b/modules/ssl/ssl_engine_vars.c @@ -721,7 +721,7 @@ static char *ssl_var_lookup_ssl_cert_remain(apr_pool_t *p, const 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);