[krbdev.mit.edu #9141] git commit

"Greg Hudson via RT" <[email protected]> Mon, 04 Aug 2025 18:32:02 -0400
Newsgroups gmane.comp.encryption.kerberos.bugs
Message-ID <[email protected]>
<URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=9141 >


Fix krb5_crypto_us_timeofday() microseconds check

Commit a60db180211a383bd382afe729e9309acb8dcf53 mistakenly reversed
the sense of the krb5_crypto_us_timeofday() conditional that enforces
fowards movement of the microseconds value within a second.  Moreover,
the macros ts_after() and ts_incr() should not have been applied to
non-timestamp values.  Revert the incorrect changes.

[[email protected]: rewrote commit message]

(cherry picked from commit 6f6d795be8d0dd0a46952cf8afa59b65d71df744)

https://github.com/krb5/krb5/commit/7910ea9a7e5a1c9ed4c973c862e2bd96fea0fd13
Author: Alexey Tikhonov <[email protected]>
Committer: Greg Hudson <[email protected]>
Commit: 7910ea9a7e5a1c9ed4c973c862e2bd96fea0fd13
Branch: krb5-1.21
 src/lib/krb5/os/c_ustime.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)