Skip to content

Commit b8236d1

Browse files
committed
* 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/trunk@1931420 13f79535-47bb-0310-9956-ffa450edef68
1 parent c8a53d1 commit b8236d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)