1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

r3934: Correctly check for the top length bit in LARGE_READX.

Jeremy.
This commit is contained in:
Jeremy Allison 2004-11-24 03:42:01 +00:00 committed by Gerald (Jerry) Carter
parent 8e979772a6
commit f9effa2af9

View File

@ -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
/*