]> granicus.if.org Git - cronie/commitdiff
PAM hadn't closed session.
authormmaslano <mmaslano@redhat.com>
Fri, 17 Aug 2007 13:04:04 +0000 (15:04 +0200)
committermmaslano <mmaslano@redhat.com>
Fri, 24 Aug 2007 13:05:59 +0000 (15:05 +0200)
do_command.c

index c4d4d41750e89c14f7ccfb14e517a32b4a914129..c0f632dbd3236499e0eaf1ca3b09476bc9c1a38a 100644 (file)
@@ -33,6 +33,7 @@ static const struct pam_conv conv = {
 #define PAM_FAIL_CHECK if (retcode != PAM_SUCCESS) { \
        fprintf(stderr,"\n%s\n",pam_strerror(pamh, retcode)); \
        syslog(LOG_ERR,"%s",pam_strerror(pamh, retcode)); \
+       pam_close_session(pamh, PAM_SILENT); \
        pam_end(pamh, retcode); exit(1); \
    }
 #endif