fix an accidental NULL deref introduced last year, found by patrick.
authorderaadt <deraadt@openbsd.org>
Tue, 16 Nov 2021 21:55:21 +0000 (21:55 +0000)
committerderaadt <deraadt@openbsd.org>
Tue, 16 Nov 2021 21:55:21 +0000 (21:55 +0000)
commita5dfec8fdaf0b4c0fdc18ec79317f74db550548a
tree8aefcd44a7d58461b63d0858c06fc6213346d68f
parent2991df65996c0af549ccd395e33445db6ae3b218
fix an accidental NULL deref introduced last year, found by patrick.
rewrite the code with a goto so this never happens again.
ok patrick millert
libexec/login_passwd/login_passwd.c