svn commit: samba r2537 - in branches/SAMBA_4_0/source/rpc_server/samr: .

abartlet at samba.org abartlet at samba.org
Wed Sep 22 22:10:46 GMT 2004


Author: abartlet
Date: 2004-09-22 22:10:43 +0000 (Wed, 22 Sep 2004)
New Revision: 2537

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

Log:
Add static and use strlen_m instead of str_charnum().

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/rpc_server/samr/samr_password.c


Changeset:
Modified: branches/SAMBA_4_0/source/rpc_server/samr/samr_password.c
===================================================================
--- branches/SAMBA_4_0/source/rpc_server/samr/samr_password.c	2004-09-22 22:06:21 UTC (rev 2536)
+++ branches/SAMBA_4_0/source/rpc_server/samr/samr_password.c	2004-09-22 22:10:43 UTC (rev 2537)
@@ -405,7 +405,7 @@
 /*
   check that a password is sufficiently complex
 */
-BOOL samdb_password_complexity_ok(const char *pass)
+static BOOL samdb_password_complexity_ok(const char *pass)
 {
 	return check_password_quality(pass);
 }
@@ -482,7 +482,7 @@
 
 	if (new_pass) {
 		/* check the various password restrictions */
-		if (minPwdLength > str_charnum(new_pass)) {
+		if (minPwdLength > strlen_m(new_pass)) {
 			if (reject_reason) {
 				*reject_reason = SAMR_REJECT_TOO_SHORT;
 			}



More information about the samba-cvs mailing list