summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2004-09-14 01:11:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:39 -0500
commit5e2bac3df484d666f9623948a3fb8bcfe7172b1f (patch)
treebae0b6f58890a3ce395dc2778fd95414cd2790c3
parent410a6c72eafbb7fb1ecc9bf89310842ea8027494 (diff)
downloadsamba-5e2bac3df484d666f9623948a3fb8bcfe7172b1f.tar.gz
samba-5e2bac3df484d666f9623948a3fb8bcfe7172b1f.tar.bz2
samba-5e2bac3df484d666f9623948a3fb8bcfe7172b1f.zip
r2333: check the script is not a 0 lenght string
(This used to be commit 05a80c37375b3186b02b8430033796ab7a7d68bb)
-rw-r--r--source3/smbd/chgpasswd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c
index 7d3ffedec0..af363d75a3 100644
--- a/source3/smbd/chgpasswd.c
+++ b/source3/smbd/chgpasswd.c
@@ -1047,7 +1047,7 @@ NTSTATUS change_oem_password(SAM_ACCOUNT *hnd, char *old_passwd, char *new_passw
}
/* Use external script to check password complexity */
- if (lp_check_password_script()) {
+ if (lp_check_password_script() && *(lp_check_password_script())) {
int check_ret;
check_ret = smbrunsecret(lp_check_password_script(), new_passwd);