Fix set_posix_lock check which had been reversed in the recent
[ira/wip.git] / source3 / smbd / trans2.c
index 4dd03750673bcaa946f8ea2e0264fb2918b330b5..a862c1466fc74949b3c2e05c06ed465946431fcd 100644 (file)
@@ -7277,7 +7277,7 @@ NTSTATUS smbd_do_setfilepathinfo(connection_struct *conn,
 
                case SMB_SET_POSIX_LOCK:
                {
-                       if (fsp) {
+                       if (!fsp) {
                                return NT_STATUS_INVALID_LEVEL;
                        }
                        status = smb_set_posix_lock(conn, req,