mirror of
https://github.com/samba-team/samba.git
synced 2025-08-05 12:22:11 +03:00
r3934: Correctly check for the top length bit in LARGE_READX.
Jeremy.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
8e979772a6
commit
f9effa2af9
@ -33,6 +33,7 @@ extern int max_recv;
|
|||||||
extern char magic_char;
|
extern char magic_char;
|
||||||
extern int global_oplock_break;
|
extern int global_oplock_break;
|
||||||
unsigned int smb_echo_count = 0;
|
unsigned int smb_echo_count = 0;
|
||||||
|
extern uint32 global_client_caps;
|
||||||
|
|
||||||
extern BOOL global_encrypted_passwords_negotiated;
|
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);
|
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) {
|
if(CVAL(inbuf,smb_wct) == 12) {
|
||||||
#ifdef LARGE_SMB_OFF_T
|
#ifdef LARGE_SMB_OFF_T
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user