1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2025-02-22 00:54:30 +01:00

Avoid double fclose() in some error cases.

Problem reported (and patched) by Lingzhu Xiang <xianglingzhu@gmail.com>
in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657524
This commit is contained in:
Fredrik Thulin 2012-01-27 12:33:53 +01:00
parent 0456249391
commit 73369beba9

View File

@ -526,6 +526,7 @@ do_challenge_response(pam_handle_t *pamh, struct cfg *cfg, const char *username)
f = NULL; f = NULL;
goto out; goto out;
} }
f = NULL;
if (restore_privileges(pamh) < 0) { if (restore_privileges(pamh) < 0) {
DBG (("could not restore privileges")); DBG (("could not restore privileges"));