diff options
-rw-r--r-- | source3/smbd/chgpasswd.c | 2 |
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); |