]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
*) modules/ssl/ssl_engine_vars.c (ssl_var_lookup_ssl_cert_remain):
authorJim Jagielski <jim@apache.org>
Thu, 2 Jul 2026 19:53:40 +0000 (19:53 +0000)
committerJim Jagielski <jim@apache.org>
Thu, 2 Jul 2026 19:53:40 +0000 (19:53 +0000)
     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

STATUS
modules/ssl/ssl_engine_vars.c

diff --git a/STATUS b/STATUS
index 6f5c3a2acf1bb2ac66cc64046a08ae4cb3b1b9d3..183006a7686987cd3f52078b857fab0a6e901508 100644 (file)
--- 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 .
index 4307815eec871ea2a528fd46c182617c0ffc5e45..eb99421ae759b1c63c80fe318c64b9fbd7342a4d 100644 (file)
@@ -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);