Changeset 496 in openpam for trunk


Ignore:
Timestamp:
Nov 21, 2011, 4:20:45 PM (8 years ago)
Author:
Dag-Erling Smørgrav
Message:

Disallow changing the service name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/pam_set_item.c

    r443 r496  
    7171        switch (item_type) {
    7272        case PAM_SERVICE:
     73                /* set once only, by pam_start() */
     74                if (*slot != NULL)
     75                        RETURNC(PAM_SYSTEM_ERR);
     76                /* fall through */
    7377        case PAM_USER:
    7478        case PAM_AUTHTOK:
Note: See TracChangeset for help on using the changeset viewer.