Third part of fix for bug #8837 - smbd crashes when deleting directory and veto files...
[amitay/samba.git] / source3 / smbd / close.c
index 8b91da81d543c2563098dac83e4377fb0053aece..da6d8483a182c214e487de95b146d4c6f8265ed3 100644 (file)
@@ -870,7 +870,7 @@ static NTSTATUS rmdir_internals(TALLOC_CTX *ctx, files_struct *fsp)
                return NT_STATUS_OK;
        }
 
-       if(((errno == ENOTEMPTY)||(errno == EEXIST)) && lp_veto_files(SNUM(conn))) {
+       if(((errno == ENOTEMPTY)||(errno == EEXIST)) && *lp_veto_files(SNUM(conn))) {
                /*
                 * Check to see if the only thing in this directory are
                 * vetoed files/directories. If so then delete them and