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:
Dag-Erling Smørgrav 2016-01-09 17:22:34 +00:00
parent d4aad88c97
commit e89fab019e

View file

@ -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);
}