]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r22124: Wow - NTCreateX sets the word count to 42, but returns 50 on
authorJeremy Allison <jra@samba.org>
Sat, 7 Apr 2007 06:59:32 +0000 (06:59 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:19:14 +0000 (12:19 -0500)
the wire. Strange.... But now we're returning Windows compatible
extended info. Next to fix the pipe returns and NTTrans Creates.
Jeremy.

source/smbd/nttrans.c

index 9094519b3eed2e5af953c15639387203a3b7adc9..0618a938e704456ec7cee75b7daa24ce7f8de15c 100644 (file)
@@ -848,7 +848,13 @@ int reply_ntcreate_and_X(connection_struct *conn,
        }
 
        if (flags & EXTENDED_RESPONSE_REQUIRED) {
-               set_message(outbuf,42,0,True);
+               /* This is very strange. We
+                * return 50 words, but only set
+                * the wcnt to 42 ? It's definately
+                * what happens on the wire....
+                */
+               set_message(outbuf,50,0,True);
+               SCVAL(outbuf,smb_wct,42);
        } else {
                set_message(outbuf,34,0,True);
        }