mirror of
https://github.com/samba-team/samba.git
synced 2025-01-18 06:04:06 +03:00
winbind: Fix Coverity ID 1509002 Use of 32-bit time_t
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
This commit is contained in:
parent
de8babd6af
commit
3035f98364
@ -59,9 +59,11 @@ static void ads_cached_connection_reuse(ADS_STRUCT **adsp)
|
|||||||
|
|
||||||
expire = nt_time_to_unix(ads->auth.expire_time);
|
expire = nt_time_to_unix(ads->auth.expire_time);
|
||||||
|
|
||||||
DEBUG(7, ("Current tickets expire in %d seconds (at %d, time "
|
DBG_INFO("Current tickets expire in %" PRIu64 " seconds "
|
||||||
"is now %d)\n", (uint32_t)expire - (uint32_t)now,
|
"(at %" PRIu64 ", time is now %" PRIu64 ")\n",
|
||||||
(uint32_t) expire, (uint32_t) now));
|
(uint64_t)expire - (uint64_t)now,
|
||||||
|
(uint64_t)expire,
|
||||||
|
(uint64_t)now);
|
||||||
|
|
||||||
if ( ads->config.realm && (expire > now)) {
|
if ( ads->config.realm && (expire > now)) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user