[2197] in Kerberos-V5-bugs
Re: Bug in leap year calculation
daemon@ATHENA.MIT.EDU (epeisach@MIT.EDU)
Fri Aug 30 22:40:33 1996
From: epeisach@MIT.EDU
Date: Fri, 30 Aug 1996 22:39:55 -0400
To: "Larry V. Streepy, Jr." <streepy@healthcare.com>
Cc: krb5-bugs@MIT.EDU
>> This is all with the latest download of krb5
Interesting - the latest version that was released was Beta-6 with the
relevant code of:
/* add in leap day for all previous years */
accum += (t->tm_year - 69) / 4;
/* add in leap day for this year */
if(t->tm_mon >= 2) /* march or later */
if(hasleapday((t->tm_year + 1900))) accum += 1;
vs yours:
/* add in leap day for all previous years */
accum += (t->tm_year - 68) / 4;
/* add in leap day for this year */
if(t->tm_mon >= 2) /* march or later */
if(hasleapday(t->tm_year)) accum += 1;
Are you sure that you really have the latest sources?
ezra