Cope with bad trans2mkdir requests from System i QNTC IBM SMB client.
authorJeremy Allison <jra@samba.org>
Fri, 17 Oct 2008 04:03:59 +0000 (21:03 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 17 Oct 2008 04:03:59 +0000 (21:03 -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.

source3/smbd/trans2.c

index 00fee0d34d5a917166604cc7a641ec13ea21478d..1da45a8b58c8ca645a69e48727647737e7025820 100644 (file)
@@ -7065,10 +7065,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);