]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r2333: check the script is not a 0 lenght string
authorSimo Sorce <idra@samba.org>
Tue, 14 Sep 2004 01:11:01 +0000 (01:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:39 +0000 (10:52 -0500)
(This used to be commit 05a80c37375b3186b02b8430033796ab7a7d68bb)

source3/smbd/chgpasswd.c

index 7d3ffedec0e04c1120c0c00cedfacd555b66e129..af363d75a3f9fcd7ba65b5ccc4b96c6676a71d87 100644 (file)
@@ -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);