Skip to content

Commit 76659b2

Browse files
committed
* modules/ssl/ssl_engine_vars.c (ssl_var_lookup_ssl_cert):
Fix off-by-one in tm_mday calculation, identified by Gemini.
1 parent c8a53d1 commit 76659b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ssl/ssl_engine_vars.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ static const char *ssl_var_lookup_ssl_cert_remain(apr_pool_t *p, ASN1_TIME *tm)
857857
}
858858

859859
exp.tm_mon = DIGIT2NUM(dp) - 1;
860-
exp.tm_mday = DIGIT2NUM(dp + 2) + 1;
860+
exp.tm_mday = DIGIT2NUM(dp + 2);
861861
exp.tm_hour = DIGIT2NUM(dp + 4);
862862
exp.tm_min = DIGIT2NUM(dp + 6);
863863
exp.tm_sec = DIGIT2NUM(dp + 8);

0 commit comments

Comments
 (0)