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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/tst-pam_start_confdir.c b/tests/tst-pam_start_confdir.c
index f731b2a5..b57ea573 100644
--- a/tests/tst-pam_start_confdir.c
+++ b/tests/tst-pam_start_confdir.c
@@ -77,6 +77,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 +88,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 +99,7 @@ main (void)
return 1;
}
+ pam_end (pamh, retval);
+
return 0;
}