summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-09-21 07:19:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:19:11 -0500
commitda94f9ffd9a3ea62ca2e5ddae86e4011f611502a (patch)
tree73694b299c7ac9a5b7b8071ba3bc08a0de38967d
parent77db3973c417cc934485dbd6bf1a8a1c84c1b30b (diff)
downloadsamba-da94f9ffd9a3ea62ca2e5ddae86e4011f611502a.tar.gz
samba-da94f9ffd9a3ea62ca2e5ddae86e4011f611502a.tar.bz2
samba-da94f9ffd9a3ea62ca2e5ddae86e4011f611502a.zip
r18782: Do not send random data to the password change (although that reveals
interesting new password set tests), make sure to send valid characters. Guenther (This used to be commit f193c5347cf5ef019becbc98965b83c6b249483c)
-rw-r--r--source4/torture/rpc/samr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c
index 33da02e8c8..f9bd25dc37 100644
--- a/source4/torture/rpc/samr.c
+++ b/source4/torture/rpc/samr.c
@@ -1884,11 +1884,11 @@ static BOOL test_ChangePassword(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
{
char simple_pass[9];
- char v = (char)random();
+ char *v = generate_random_str(mem_ctx, 1);
int i;
for (i=0; i <ARRAY_SIZE(simple_pass); i++) {
- simple_pass[i] = v;
+ simple_pass[i] = *v;
}
simple_pass[i] = '\0';