From 375f099a2cdfe9e686b2e1edb23f2e33a47f5786 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 16 Oct 2008 21:04:18 -0700 Subject: [PATCH] Cope with bad trans2mkdir requests from System i QNTC IBM SMB client. 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. (cherry picked from commit 5b1d8588d01d11251541829c5a3dff211fe925fd) (cherry picked from commit feb057d4503118e519b5dbd9d2c3ca2c1ee55380) --- source/smbd/trans2.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c index 0d44c5de41f..c7edec1d154 100644 --- a/source/smbd/trans2.c +++ b/source/smbd/trans2.c @@ -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); -- 2.11.4.GIT