From: Volker Lendecke Date: Thu, 21 Nov 2024 17:17:53 +0000 (+0100) Subject: passdb: Fix Coverity ID 1509016 Use of 32-bit time_t X-Git-Tag: tdb-1.4.13~449 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=370f1d932e88f02b6802018f0e9d3395c8db8bbb;p=thirdparty%2Fsamba.git passdb: Fix Coverity ID 1509016 Use of 32-bit time_t Signed-off-by: Volker Lendecke Reviewed-by: Martin Schwenke --- diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index f0ce8b2352d..229e1637d7b 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -2178,8 +2178,11 @@ bool pdb_update_bad_password_count(struct samu *sampass, bool *updated) } LastBadPassword = pdb_get_bad_password_time(sampass); - DEBUG(7, ("LastBadPassword=%d, resettime=%d, current time=%d.\n", - (uint32_t) LastBadPassword, resettime, (uint32_t)time(NULL))); + DBG_INFO("LastBadPassword=%" PRIu64 ", resettime=%d, " + "current time=%" PRIu64 ".\n", + (uint64_t)LastBadPassword, + resettime, + (uint64_t)time(NULL)); if (time(NULL) > (LastBadPassword + convert_uint32_t_to_time_t(resettime)*60)){ pdb_set_bad_password_count(sampass, 0, PDB_CHANGED); pdb_set_bad_password_time(sampass, 0, PDB_CHANGED);