Changeset 48 in openpam


Ignore:
Timestamp:
Feb 12, 2002, 10:42:52 PM (16 years ago)
Author:
Dag-Erling Smørgrav
Message:

Fix a showstopping NULL dereference in pam_set_item(3).

Sponsored by: DARPA, NAI Labs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/pam_set_item.c

    r17 r48  
    7373        case PAM_USER_PROMPT:
    7474        case PAM_AUTHTOK_PROMPT:
    75                 size = strlen(*slot) + 1;
     75                if (*slot != NULL)
     76                        size = strlen(*slot) + 1;
    7677                if (item != NULL)
    7778                        tmp = strdup(item);
Note: See TracChangeset for help on using the changeset viewer.