summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-09-22 22:10:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:04 -0500
commit814cd2bc3f25c62a8a8dbb2252524cd1e29addd2 (patch)
tree69dfeba8c0faf7a35822d23cb3fc6e5819bb048d
parent8ab562dcb2996c3b1c1efbc7e7653dd5bc3a4823 (diff)
downloadsamba-814cd2bc3f25c62a8a8dbb2252524cd1e29addd2.tar.gz
samba-814cd2bc3f25c62a8a8dbb2252524cd1e29addd2.tar.bz2
samba-814cd2bc3f25c62a8a8dbb2252524cd1e29addd2.zip
r2537: Add static and use strlen_m instead of str_charnum().
Andrew Bartlett (This used to be commit f3bf57ca6be3b71ebd8f8312c3d9e54387bdc402)
-rw-r--r--source4/rpc_server/samr/samr_password.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/rpc_server/samr/samr_password.c b/source4/rpc_server/samr/samr_password.c
index 5a6efc137b..282d83a190 100644
--- a/source4/rpc_server/samr/samr_password.c
+++ b/source4/rpc_server/samr/samr_password.c
@@ -405,7 +405,7 @@ NTSTATUS samr_ChangePasswordUser2(struct dcesrv_call_state *dce_call, TALLOC_CTX
/*
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 @@ NTSTATUS samdb_set_password(void *ctx, TALLOC_CTX *mem_ctx,
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;
}