mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
lib:crypto: Correct GKDI interval start time calculation
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
924eb6bac5
commit
2be2dca44a
@ -222,7 +222,7 @@ bool gkdi_get_key_start_time(const struct Gkid gkid, NTTIME *start_time_out)
|
||||
*/
|
||||
NTTIME gkdi_get_interval_start_time(const NTTIME time)
|
||||
{
|
||||
return time % gkdi_key_cycle_duration;
|
||||
return time / gkdi_key_cycle_duration * gkdi_key_cycle_duration;
|
||||
}
|
||||
|
||||
bool gkid_less_than_or_equal_to(const struct Gkid g1, const struct Gkid g2)
|
||||
|
Loading…
Reference in New Issue
Block a user