mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-02-20 21:54:16 +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:
parent
0456249391
commit
73369beba9
@ -526,6 +526,7 @@ do_challenge_response(pam_handle_t *pamh, struct cfg *cfg, const char *username)
|
||||
f = NULL;
|
||||
goto out;
|
||||
}
|
||||
f = NULL;
|
||||
|
||||
if (restore_privileges(pamh) < 0) {
|
||||
DBG (("could not restore privileges"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user