svn commit: samba r18782 - in branches/SAMBA_4_0/source/torture/rpc: .

gd at samba.org gd at samba.org
Thu Sep 21 07:19:47 GMT 2006


Author: gd
Date: 2006-09-21 07:19:47 +0000 (Thu, 21 Sep 2006)
New Revision: 18782

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18782

Log:
Do not send random data to the password change (although that reveals
interesting new password set tests), make sure to send valid characters.

Guenther

Modified:
   branches/SAMBA_4_0/source/torture/rpc/samr.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/samr.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/samr.c	2006-09-21 06:44:12 UTC (rev 18781)
+++ branches/SAMBA_4_0/source/torture/rpc/samr.c	2006-09-21 07:19:47 UTC (rev 18782)
@@ -1884,11 +1884,11 @@
 
 	{
 		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';
 



More information about the samba-cvs mailing list