]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* modules/ssl/ssl_engine_vars.c (ssl_var_lookup_ssl_cert_remain):
authorJoe Orton <jorton@apache.org>
Mon, 19 Jan 2026 12:41:30 +0000 (12:41 +0000)
committerJoe Orton <jorton@apache.org>
Mon, 19 Jan 2026 12:41:30 +0000 (12:41 +0000)
  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

modules/ssl/ssl_engine_vars.c

index 34989f1d247741f4545f031f329b7ed51875f1ea..e20a1f8dadc204fe5bc9d7ea181b7174a7997305 100644 (file)
@@ -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);