svn commit: r1935816 - in httpd/httpd/branches/2.4.x: . modules/ssl

[email protected] Thu, 02 Jul 2026 19:53:41 -0000
Newsgroups gmane.comp.apache.cvs
Message-ID <178302202119.3842305.12659538115406818319@svn03-he-fi>
Author: jim
Date: Thu Jul  2 19:53:40 2026
New Revision: 1935816

Log:
*) modules/ssl/ssl_engine_vars.c (ssl_var_lookup_ssl_cert_remain):
     Fix off-by-one in tm_mday calculation, identified by Gemini.

Modified:
   httpd/httpd/branches/2.4.x/   (props changed)
   httpd/httpd/branches/2.4.x/STATUS
   httpd/httpd/branches/2.4.x/modules/ssl/ssl_engine_vars.c

Modified: httpd/httpd/branches/2.4.x/STATUS
==============================================================================
--- httpd/httpd/branches/2.4.x/STATUS	Thu Jul  2 19:51:55 2026	(r1935815)
+++ httpd/httpd/branches/2.4.x/STATUS	Thu Jul  2 19:53:40 2026	(r1935816)
@@ -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 .

Modified: httpd/httpd/branches/2.4.x/modules/ssl/ssl_engine_vars.c
==============================================================================
--- httpd/httpd/branches/2.4.x/modules/ssl/ssl_engine_vars.c	Thu Jul  2 19:51:55 2026	(r1935815)
+++ httpd/httpd/branches/2.4.x/modules/ssl/ssl_engine_vars.c	Thu Jul  2 19:53:40 2026	(r1935816)
@@ -721,7 +721,7 @@ static char *ssl_var_lookup_ssl_cert_rem
     }
 
     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);