aboutsummaryrefslogtreecommitdiff
path: root/tests/tst-pam_start.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tst-pam_start.c')
-rw-r--r--tests/tst-pam_start.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tst-pam_start.c b/tests/tst-pam_start.c
index 8fa18f74..23af4fe8 100644
--- a/tests/tst-pam_start.c
+++ b/tests/tst-pam_start.c
@@ -66,6 +66,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 +86,8 @@ main (void)
return 1;
}
+ pam_end (pamh, retval);
+
/* 4: check with NULL for conv */
retval = pam_start (service, user, NULL, &pamh);