]> git.ipfire.org Git - thirdparty/samba.git/commit
passdb: Fixing CID 1508970 for time_t in DEBUG statement
authorRabinarayan Panigrahi <rapanigr@redhat.com>
Thu, 4 Sep 2025 12:57:00 +0000 (18:27 +0530)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 10 Sep 2025 09:38:30 +0000 (09:38 +0000)
commitc25a5a26a1cba698420fb64e23bee3b52540b21b
tree832be6c12bbf819ef48a4f6c7bd9cfd6b72b3da4
parent16cd2f337218eea2d11fb3c0b3155eeea910bcf9
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 <rapanigr@redhat.com>
Reviewed-by: Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/passdb/login_cache.c