From: Jeremy Allison Date: Wed, 24 Nov 2004 03:42:01 +0000 (+0000) Subject: r3934: Correctly check for the top length bit in LARGE_READX. X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5544 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f9effa2af90245c0fe090d730c86a2a60d8570dc;p=thirdparty%2Fsamba.git r3934: Correctly check for the top length bit in LARGE_READX. Jeremy. --- diff --git a/source/smbd/reply.c b/source/smbd/reply.c index 845f0588670..5d493d87163 100644 --- a/source/smbd/reply.c +++ b/source/smbd/reply.c @@ -33,6 +33,7 @@ extern int max_recv; extern char magic_char; extern int global_oplock_break; unsigned int smb_echo_count = 0; +extern uint32 global_client_caps; extern BOOL global_encrypted_passwords_negotiated; @@ -2183,6 +2184,10 @@ int reply_read_and_X(connection_struct *conn, char *inbuf,char *outbuf,int lengt set_message(outbuf,12,0,True); + if (global_client_caps & CAP_LARGE_READX) { + smb_maxcnt |= ((((size_t)SVAL(inbuf,smb_vwv7)) & 1 )<<16); + } + if(CVAL(inbuf,smb_wct) == 12) { #ifdef LARGE_SMB_OFF_T /*