mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +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 used to be commit f193c5347cf5ef019becbc98965b83c6b249483c)
This commit is contained in:
parent
77db3973c4
commit
da94f9ffd9
@ -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';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user