aboutsummaryrefslogtreecommitdiff
path: root/tests/tst-pam_start_confdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tst-pam_start_confdir.c')
-rw-r--r--tests/tst-pam_start_confdir.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/tst-pam_start_confdir.c b/tests/tst-pam_start_confdir.c
index f731b2a5..cb2c5704 100644
--- a/tests/tst-pam_start_confdir.c
+++ b/tests/tst-pam_start_confdir.c
@@ -31,9 +31,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <stdlib.h>
@@ -77,6 +75,8 @@ main (void)
return 1;
}
+ pam_end (pamh, retval);
+
/* 2: check with invalid service */
retval = pam_start_confdir (xservice, user, &conv, confdir, &pamh);
if (retval == PAM_SUCCESS)
@@ -86,6 +86,8 @@ main (void)
return 1;
}
+ pam_end (pamh, retval);
+
/* 3: check with invalid confdir */
retval = pam_start_confdir (service, user, &conv, xconfdir, &pamh);
if (retval == PAM_SUCCESS)
@@ -95,5 +97,7 @@ main (void)
return 1;
}
+ pam_end (pamh, retval);
+
return 0;
}