diff options
Diffstat (limited to 'libpam/pam_end.c')
-rw-r--r-- | libpam/pam_end.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libpam/pam_end.c b/libpam/pam_end.c index b389038f..735da62e 100644 --- a/libpam/pam_end.c +++ b/libpam/pam_end.c @@ -12,9 +12,14 @@ int pam_end(pam_handle_t *pamh, int pam_status) { int ret; + D(("entering pam_end()")); + IF_NO_PAMH("pam_end", pamh, PAM_SYSTEM_ERR); - D(("entering pam_end()")); + if (__PAM_FROM_MODULE(pamh)) { + D(("called from module!?")); + return PAM_SYSTEM_ERR; + } /* first liberate the modules (it is not inconcevible that the modules may need to use the service_name etc. to clean up) */ |