mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
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 commit is contained in:
parent
72858f8594
commit
f193c5347c
@ -1884,11 +1884,11 @@ static BOOL test_ChangePassword(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
|
|||||||
|
|
||||||
{
|
{
|
||||||
char simple_pass[9];
|
char simple_pass[9];
|
||||||
char v = (char)random();
|
char *v = generate_random_str(mem_ctx, 1);
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i=0; i <ARRAY_SIZE(simple_pass); i++) {
|
for (i=0; i <ARRAY_SIZE(simple_pass); i++) {
|
||||||
simple_pass[i] = v;
|
simple_pass[i] = *v;
|
||||||
}
|
}
|
||||||
simple_pass[i] = '\0';
|
simple_pass[i] = '\0';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user