Changeset 21 in openpam for trunk/lib/pam_end.c


Ignore:
Timestamp:
Feb 2, 2002, 6:37:08 PM (19 years ago)
Author:
Dag-Erling Smørgrav
Message:

Move linker-related code out into a separate file so it'll be easier
to restructure it later on.

Sponsored by: DARPA, NAI Labs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/pam_end.c

    r18 r21  
    3535 */
    3636
    37 #include <dlfcn.h>
    3837#include <stdlib.h>
    3938
     
    5352        int status)
    5453{
    55         pam_chain_t *module;
    5654        pam_data_t *dp;
    5755        int i;
     
    7573
    7674        /* clear chains */
    77         for (i = 0; i < PAM_NUM_CHAINS; ++i) {
    78                 while (pamh->chains[i] != NULL) {
    79                         module = pamh->chains[i];
    80                         pamh->chains[i] = module->next;
    81                         /* XXX free options */
    82                         dlclose(module->dlh);
    83                         free(module->modpath);
    84                         free(module);
    85                 }
    86         }
     75        openpam_clear_chains(pamh);
    8776
    8877        /* clear items */
Note: See TracChangeset for help on using the changeset viewer.