diff options
Diffstat (limited to 'tests/tst-pam_start.c')
-rw-r--r-- | tests/tst-pam_start.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/tst-pam_start.c b/tests/tst-pam_start.c index 8fa18f74..728eafe1 100644 --- a/tests/tst-pam_start.c +++ b/tests/tst-pam_start.c @@ -31,9 +31,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H #include <config.h> -#endif #include <stdio.h> #include <unistd.h> @@ -66,6 +64,8 @@ main (void) return 1; } + pam_end (pamh, retval); + /* 2: check with NULL for service */ retval = pam_start (NULL, user, &conv, &pamh); if (retval == PAM_SUCCESS) @@ -84,6 +84,8 @@ main (void) return 1; } + pam_end (pamh, retval); + /* 4: check with NULL for conv */ retval = pam_start (service, user, NULL, &pamh); |