]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix krb5_crypto_us_timeofday() microseconds check 1374/head
authorAlexey Tikhonov <atikhono@redhat.com>
Thu, 3 Oct 2024 16:40:04 +0000 (18:40 +0200)
committerGreg Hudson <ghudson@mit.edu>
Mon, 7 Oct 2024 23:23:30 +0000 (19:23 -0400)
commit6f6d795be8d0dd0a46952cf8afa59b65d71df744
tree18bbadfe68e0850ec66e33fe93ae1c5eb4ba97f4
parenta96541981ee34c8642ddeb6101b98e883e41c6e5
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.

[ghudson@mit.edu: rewrote commit message]

ticket: 9141 (new)
tags: pullup
target_version: 1.21-next
src/lib/krb5/os/c_ustime.c