nscd: Use time_t for return type of addgetnetgrentX
authorFlorian Weimer <fweimer@redhat.com>
Thu, 2 May 2024 15:06:19 +0000 (17:06 +0200)
committerAdrian Bunk <bunk@debian.org>
Sat, 29 Jun 2024 10:27:34 +0000 (13:27 +0300)
commit56314541fe03bb0568a9c48ce1a20eb1689c57f0
tree30c3f0626e96b15c83a805f965e0f3177d40f71f
parent86d6f71a1d04906b1a10e13ffb4c0cfb9cd0c559
nscd: Use time_t for return type of addgetnetgrentX

Using int may give false results for future dates (timeouts after the
year 2028).

Fixes commit 04a21e050d64a1193a6daab872bca2528bda44b ("CVE-2024-33601,
CVE-2024-33602: nscd: netgroup: Use two buffers in addgetnetgrentX
(bug 31680)").

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Gbp-Pq: Topic all
Gbp-Pq: Name git-0005-nscd-Use-time_t-for-return-type-of-addgetnetgrentX.patch
nscd/netgroupcache.c