Changeset 33 in openpam


Ignore:
Timestamp:
Feb 4, 2002, 11:36:07 PM (16 years ago)
Author:
Dag-Erling Smørgrav
Message:

Behave more like Solaris when faced with an empty chain, or a chain
that lists modules that don't implement the required functionality.

Sponsored by: DARPA, NAI Labs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/openpam_dispatch.c

    r32 r33  
    8888        }
    8989
    90         /* fail if the chain is empty */
    91         if (chain == NULL)
    92                 return (PAM_SYSTEM_ERR);
    93 
    9490        /* execute */
    9591        for (err = fail = 0; chain != NULL; chain = chain->next) {
     
    9793                        openpam_log(PAM_LOG_ERROR, "%s: no %s()",
    9894                            chain->module->path, _pam_sm_func_name[primitive]);
    99                         r = PAM_SYMBOL_ERR;
     95                        continue;
    10096                } else {
    10197                        pamh->current = chain;
Note: See TracChangeset for help on using the changeset viewer.