From 814cd2bc3f25c62a8a8dbb2252524cd1e29addd2 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 22 Sep 2004 22:10:43 +0000 Subject: r2537: Add static and use strlen_m instead of str_charnum(). Andrew Bartlett (This used to be commit f3bf57ca6be3b71ebd8f8312c3d9e54387bdc402) --- source4/rpc_server/samr/samr_password.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/rpc_server') 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; } -- cgit