search for: smbioctl

Displaying 1 result from an estimated 1 matches for "smbioctl".

Did you mean: smb_ioctl
2003 Sep 05
1
Problem with Win95 + DFS clients (fwd)
...h win95 + DFS*/ +static int hack_fid; + + static void overflow_attack(int len) { if( DEBUGLVL( 0 ) ) { @@ -429,8 +433,26 @@ uint32 ioctl_code = (device << 16) + function; int replysize, outsize; char *p; + int temp = 0; files_struct *fsp = file_fsp(inbuf,smb_vwv0); - START_PROFILE(SMBioctl); + int fid = SVAL(inbuf,smb_vwv0); + + DEBUG ( 4, ( " smbvwv0 before = %i ( 0x%x )\n", fid, fid)); + /* hack for Win95 + dfs . Does not give proper value of fid in request + Value taken from last open_and_X */ + if ( fid != hack_fid ) { + SSVAL(inbuf, s...