+* Fix [CID 72], a typo introduced at the latest fix to prettydate.c.
(4.2.5p157) 2009/01/26 Released by Harlan Stenn <stenn@ntp.org>
* Cleanup/fixes for ntp_proto.c and ntp_crypto.c from Dave Mills.
(4.2.5p156) 2009/01/19 Released by Harlan Stenn <stenn@ntp.org>
# endif /* Microsoft specific */
/* 't' should be a suitable value by now. Just go ahead. */
- while ( (tm = (*(local ? localtime : gmtime))(&t)) != 0)
+ while ( (tm = (*(local ? localtime : gmtime))(&t)) == 0)
/* seems there are some other pathological implementations of
** 'gmtime()' and 'localtime()' somewhere out there. No matter
** if we have 32-bit or 64-bit 'time_t', try to fix this by
return NULL; /* That's truely pathological! */
}
/* 'tm' surely not NULL here... */
+ NTP_INSIST(tm != NULL);
if (folds != 0) {
tm->tm_year += folds * SOLAR_CYCLE_YEARS;
if (tm->tm_year <= 0 || tm->tm_year >= 200)