Cope with bad trans2mkdir requests from System i QNTC IBM SMB client.
authorJeremy Allison <jra@samba.org>
Fri, 17 Oct 2008 04:04:18 +0000 (21:04 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 17 Oct 2008 04:04:18 +0000 (21:04 -0700)
If total_data == 4 Windows doesn't care what values
are placed in that field, it just ignores them.
The System i QNTC IBM SMB client puts bad values here,
so ignore them.
Jeremy.

source/smbd/trans2.c

index f3b45ad1fd0d680af520f290a968f498b08f9f0d..acc424f812405743061186378814662f9b75410e 100644 (file)
@@ -7048,10 +7048,11 @@ static void call_trans2mkdir(connection_struct *conn, struct smb_request *req,
                        reply_nterror(req, NT_STATUS_INVALID_PARAMETER);
                        return;
                }
-       } else if (IVAL(pdata,0) != 4) {
-               reply_nterror(req, NT_STATUS_INVALID_PARAMETER);
-               return;
        }
+       /* If total_data == 4 Windows doesn't care what values
+        * are placed in that field, it just ignores them.
+        * The System i QNTC IBM SMB client puts bad values here,
+        * so ignore them. */
 
        status = create_directory(conn, req, directory);