From: Rabinarayan Panigrahi Date: Thu, 4 Sep 2025 12:57:00 +0000 (+0530) Subject: passdb: Fixing CID 1508970 for time_t in DEBUG statement X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c25a5a26a1cba698420fb64e23bee3b52540b21b;p=thirdparty%2Fsamba.git passdb: Fixing CID 1508970 for time_t in DEBUG statement Fix: typecast changing from (unsigned int)entry->bad_password_time to (intmax_t)entry->bad_password_time as intmax_t can hold epoch seconds after 2038 year Signed-off-by: Rabinarayan Panigrahi Reviewed-by: Signed-off-by: Martin Schwenke Reviewed-by: Andreas Schneider --- diff --git a/source3/passdb/login_cache.c b/source3/passdb/login_cache.c index 6b636b3c8b7..e4f23f0caba 100644 --- a/source3/passdb/login_cache.c +++ b/source3/passdb/login_cache.c @@ -116,9 +116,9 @@ bool login_cache_read(struct samu *sampass, struct login_cache *entry) SAFE_FREE(databuf.dptr); - DEBUG(5, ("Found login cache entry: timestamp %12u, flags 0x%x, count %d, time %12u\n", + DEBUG(5, ("Found login cache entry: timestamp %12u, flags 0x%x, count %d, time %12jd\n", (unsigned int)entry->entry_timestamp, entry->acct_ctrl, - entry->bad_password_count, (unsigned int)entry->bad_password_time)); + entry->bad_password_count, (intmax_t)entry->bad_password_time)); return true; }