]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/getdef.c: getdef_unum(): Fix wrong limit check
authorAlejandro Colomar <alx@kernel.org>
Tue, 9 Jan 2024 19:00:03 +0000 (20:00 +0100)
committerAlejandro Colomar <alx@kernel.org>
Tue, 2 Jul 2024 20:52:31 +0000 (22:52 +0200)
commit45d4472c92c9f110964729d194ac84deac1caae8
treea6f5868a7d7be97cc0e98ca24bd9e71f7e55de79
parent9415ce4a14c2348adb5fc93103d6c777095725b7
lib/getdef.c: getdef_unum(): Fix wrong limit check

The limit, since it's an unsigned int, should have been UINT_MAX, not
INT_MAX.  By calling a2ui() we can fix that and simplify too.

Reviewed-by: "Serge E. Hallyn" <serge@hallyn.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/getdef.c