summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/common/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c
index 76a4efc82d..393e1d45f5 100644
--- a/source4/dsdb/common/util.c
+++ b/source4/dsdb/common/util.c
@@ -1590,6 +1590,7 @@ enum samr_ValidationStatus samdb_check_password(const DATA_BLOB *password,
/* checks the password complexity */
if (((pwdProperties & DOMAIN_PASSWORD_COMPLEX) != 0)
+ && (password->data != NULL)
&& (!check_password_quality((const char *) password->data)))
return SAMR_VALIDATION_STATUS_NOT_COMPLEX_ENOUGH;