]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
winbind: Fix Coverity ID 1509002 Use of 32-bit time_t
authorVolker Lendecke <vl@samba.org>
Wed, 4 Dec 2024 15:38:47 +0000 (16:38 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 17 Dec 2024 12:30:31 +0000 (12:30 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
source3/winbindd/winbindd_ads.c

index 7ade5718399dc41d61e8ef1c55a4b98b4bba2ad8..90f1fbf15ff8f22c2e6a94e16d08fa883e2f0cbe 100644 (file)
@@ -59,9 +59,11 @@ static void ads_cached_connection_reuse(ADS_STRUCT **adsp)
 
                expire = nt_time_to_unix(ads->auth.expire_time);
 
-               DEBUG(7, ("Current tickets expire in %d seconds (at %d, time "
-                         "is now %d)\n", (uint32_t)expire - (uint32_t)now,
-                         (uint32_t) expire, (uint32_t) now));
+               DBG_INFO("Current tickets expire in %" PRIu64 " seconds "
+                        "(at %" PRIu64 ", time is now %" PRIu64 ")\n",
+                        (uint64_t)expire - (uint64_t)now,
+                        (uint64_t)expire,
+                        (uint64_t)now);
 
                if ( ads->config.realm && (expire > now)) {
                        return;