]> git.ipfire.org Git - thirdparty/shadow.git/commit
src/sulogin.c: Free previously allocated memory
authorSamanta Navarro <ferivoz@riseup.net>
Thu, 18 Jan 2024 11:53:41 +0000 (11:53 +0000)
committerSerge Hallyn <serge@hallyn.com>
Mon, 22 Jan 2024 21:40:39 +0000 (15:40 -0600)
commit4d835c7ea462a5a35ea1d9d06a3cf8a629880730
treeb077a72e827553f506d63716afaf1c9f79161694
parent08ae7af111aaf8eb399b6ca2d473f4fc0c353dc6
src/sulogin.c: Free previously allocated memory

The sulogin program calls pw_entry in a loop while incorrect root
passwords are entered.

Free the previously allocated memory to avoid memory exhaustion.

Co-developed-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Samanta Navarro <ferivoz@riseup.net>
src/sulogin.c