Changeset 875 in openpam


Ignore:
Timestamp:
Jan 9, 2016, 5:22:34 PM (5 years ago)
Author:
Dag-Erling Smørgrav
Message:

Fix NULL check in pam_oath_save_key() error-handling code, which
checked the wrong variable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/pam_oath/pam_oath.c

    r854 r875  
    163163        if (fd >= 0)
    164164                close(fd);
    165         if (keyfile != NULL) {
     165        if (keyuri != NULL) {
    166166                memset(keyuri, 0, len);
    167167                free(keyuri);
Note: See TracChangeset for help on using the changeset viewer.