diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-11-14 15:34:34 -0500 |
---|---|---|
committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-11-14 15:34:34 -0500 |
commit | 6d391f77051cc485f09600a00ff3d129f9736a35 (patch) | |
tree | 6127babd0c9b59e9761ff7ac41efa1e66f837808 /cups | |
parent | e2eb28cfcf10ef163253a65f631e0cc98fe34804 (diff) | |
download | cups-6d391f77051cc485f09600a00ff3d129f9736a35.tar.gz |
Don't generate certificates that expire on Feb 29th (Issue #5643)
Diffstat (limited to 'cups')
-rw-r--r-- | cups/tls-sspi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cups/tls-sspi.c b/cups/tls-sspi.c index 6e3c03b9e..ccbdf8aaf 100644 --- a/cups/tls-sspi.c +++ b/cups/tls-sspi.c @@ -1967,6 +1967,8 @@ http_sspi_make_credentials( GetSystemTime(&et); et.wYear += years; + if (et.wMonth == 2 && et.wDay == 29) + et.wDay = 28; /* Avoid Feb 29th due to leap years */ ZeroMemory(&exts, sizeof(exts)); |