svn commit: samba r2545 - in branches/SAMBA_4_0/source/libnet: .

abartlet at samba.org abartlet at samba.org
Wed Sep 22 23:56:22 GMT 2004


Author: abartlet
Date: 2004-09-22 23:56:22 +0000 (Wed, 22 Sep 2004)
New Revision: 2545

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/libnet&rev=2545&nolog=1

Log:
str_charnum -> strlen_m.

These two functions do exactly the same thing, I'll be removing
str_charnum shortly.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/libnet/libnet_passwd.c


Changeset:
Modified: branches/SAMBA_4_0/source/libnet/libnet_passwd.c
===================================================================
--- branches/SAMBA_4_0/source/libnet/libnet_passwd.c	2004-09-22 23:53:41 UTC (rev 2544)
+++ branches/SAMBA_4_0/source/libnet/libnet_passwd.c	2004-09-22 23:56:22 UTC (rev 2545)
@@ -574,7 +574,7 @@
 	ZERO_STRUCT(u_info);
 	encode_pw_buffer(u_info.info24.password.data, r->samr.in.newpassword, STR_UNICODE);
 	/* w2k3 ignores this length */
-	u_info.info24.pw_len = str_charnum(r->samr.in.newpassword)*2;
+	u_info.info24.pw_len = strlen_m(r->samr.in.newpassword)*2;
 
 	status = dcerpc_fetch_session_key(c.pdc.out.dcerpc_pipe, &session_key);
 	if (!NT_STATUS_IS_OK(status)) {



More information about the samba-cvs mailing list