]> git.ipfire.org Git - thirdparty/shadow.git/commit
pwck: fix segfault when calling fprintf() 445/head
authorIker Pedrosa <ipedrosa@redhat.com>
Mon, 15 Nov 2021 11:40:15 +0000 (12:40 +0100)
committerIker Pedrosa <ipedrosa@redhat.com>
Mon, 15 Nov 2021 11:45:08 +0000 (12:45 +0100)
commitd8e54618feea201987c1f3cb402ed50d1d8b604f
treeb22092ac2302a6c50fc77222165304dfdddccb97
parent387da46d73524c9fea48f5a949eb5220d40440e6
pwck: fix segfault when calling fprintf()

As shadow_logfd variable is not set at the beginning of the program if
something fails and fprintf() is called a segmentation fault happens.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2021339

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
src/pwck.c