r2537: Add static and use strlen_m instead of str_charnum().
authorAndrew Bartlett <abartlet@samba.org>
Wed, 22 Sep 2004 22:10:43 +0000 (22:10 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:59:04 +0000 (12:59 -0500)
Andrew Bartlett
(This used to be commit f3bf57ca6be3b71ebd8f8312c3d9e54387bdc402)

source4/rpc_server/samr/samr_password.c

index 5a6efc137b7119cb6f71474b81df1e1e563f9247..282d83a1904013eb6fdde76aea623554565b4f96 100644 (file)
@@ -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;
                        }