[SCM] pam wrapper repository - branch master updated
Andreas Schneider
asn at samba.org
Wed Apr 28 12:39:19 UTC 2021
The branch, master has been updated
via 0e28e3e tests: Correctly implement free_vlist()
from 5eeaa5b libpamtest: fix comments for pamtest_conv_data
https://git.samba.org/?p=pam_wrapper.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 0e28e3e0c980fa8c2c121ba96a641a63b5179301
Author: Andreas Schneider <asn at cryptomilk.org>
Date: Mon Apr 19 16:12:30 2021 +0200
tests: Correctly implement free_vlist()
Signed-off-by: Andreas Schneider <asn at cryptomilk.org>
Reviewed-by: Ralph Boehme <slow at samba.org>
-----------------------------------------------------------------------
Summary of changes:
tests/test_pam_wrapper.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
Changeset truncated at 500 lines:
diff --git a/tests/test_pam_wrapper.c b/tests/test_pam_wrapper.c
index c8cb043..7e8b9ee 100644
--- a/tests/test_pam_wrapper.c
+++ b/tests/test_pam_wrapper.c
@@ -340,8 +340,11 @@ static void test_pam_acct_err(void **state)
static inline void free_vlist(char **vlist)
{
- free(vlist[0]);
- free(vlist[1]);
+ size_t i;
+
+ for (i = 0; vlist[i] != NULL; i++) {
+ free(vlist[i]);
+ }
free(vlist);
}
--
pam wrapper repository
More information about the samba-cvs
mailing list