Fix NULL check in pam_oath_save_key() error-handling code, which
checked the wrong variable. git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@875 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
d4aad88c97
commit
e89fab019e
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ pam_oath_save_key(const struct oath_key *key, const char *keyfile)
|
|||
done:
|
||||
if (fd >= 0)
|
||||
close(fd);
|
||||
if (keyfile != NULL) {
|
||||
if (keyuri != NULL) {
|
||||
memset(keyuri, 0, len);
|
||||
free(keyuri);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue