X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fcups.git;a=blobdiff_plain;f=cups%2Ftls-sspi.c;h=ccbdf8aaf0648d94b0d9019c4885f20fcd58cea0;hp=6e3c03b9ec14a74c502b04bb3446ec964ba96bc4;hb=6d391f77051cc485f09600a00ff3d129f9736a35;hpb=e2eb28cfcf10ef163253a65f631e0cc98fe34804 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));