]> git.ipfire.org Git - thirdparty/shadow.git/commit
src/gpasswd: Clear password in more cases
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 19 Jan 2025 20:27:50 +0000 (21:27 +0100)
committerAlejandro Colomar <alx@kernel.org>
Tue, 21 Jan 2025 15:24:26 +0000 (16:24 +0100)
commit6b4bbbeecd676c9423f82658bb3a8f6990218e8d
treea73ec042d17b2d4d311905ee2c792a7794cf0c24
parent6cbce81df97a16363c46cbd1e8202c3b4f0a2205
src/gpasswd: Clear password in more cases

If encryption of password fails, clear the memory before exiting.

Reviewed-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
src/gpasswd.c