Changeset 58 in openpam


Ignore:
Timestamp:
Feb 13, 2002, 2:19:05 AM (16 years ago)
Author:
Dag-Erling Smørgrav
Message:

Check *authtok - pam_get_item(3) will succeed even if the item is
NULL.

Sponsored by: DARPA, NAI Labs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/pam_get_authtok.c

    r39 r58  
    6060
    6161        r = pam_get_item(pamh, PAM_AUTHTOK, (const void **)authtok);
    62         if (r == PAM_SUCCESS)
     62        if (r == PAM_SUCCESS && *authtok != NULL)
    6363                return (PAM_SUCCESS);
    6464        if (prompt == NULL) {
Note: See TracChangeset for help on using the changeset viewer.