summaryrefslogtreecommitdiffstats
path: root/source/smbd/chgpasswd.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2004-09-14 01:11:01 +0000
committerSimo Sorce <idra@samba.org>2004-09-14 01:11:01 +0000
commitca106c64da96283009f65d71119a14630a64b4f3 (patch)
treef4a42dc280e1a2f25784cea91d4fdcba2927c27b /source/smbd/chgpasswd.c
parent395461d3679d11732f979f60134b65c1e8bb7b92 (diff)
downloadsamba-ca106c64da96283009f65d71119a14630a64b4f3.tar.gz
samba-ca106c64da96283009f65d71119a14630a64b4f3.tar.xz
samba-ca106c64da96283009f65d71119a14630a64b4f3.zip
r2333: check the script is not a 0 lenght string
Diffstat (limited to 'source/smbd/chgpasswd.c')
-rw-r--r--source/smbd/chgpasswd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/chgpasswd.c b/source/smbd/chgpasswd.c
index 7d3ffedec0e..af363d75a3f 100644
--- a/source/smbd/chgpasswd.c
+++ b/source/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);