1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source3/libsmb
Stefan Metzmacher 880fbc4e8c s3:libsmb: fix smb signing for fragmented trans/trans2/nttrans requests
Before we send the secondary requests we need to remove the
old mid=>seqnum mapping and reset cli->mid and make the new
mid=>seqnum mapping "persistent".

The bug we had in cli_send_trans was this:
The first cli_send_smb() incremented cli->mid
and the secondary requests used the incremented mid,
but as cli->outbuf still had the correct mid,
we send the correct mid to the server. The real problem
was that the cli_send_smb() function stored the seqnum
under the wrong mid.

cli_send_nttrans() was totally broken and now follows the
same logic as cli_send_trans().

The good thing is that in practice the problem is unlikely to happen,
because max_xmit is large enough to avoid secondary requests.

metze
2009-03-19 13:54:22 +01:00
..
async_smb.c Split up async_req into a generic and a NTSTATUS specific part 2009-02-01 19:05:39 +01:00
cliconnect.c Convert open_socket_out_defer to tevent_req 2009-03-16 19:32:01 +01:00
clidfs.c Allow DFS client paths to work when POSIX pathnames have been 2009-03-18 20:57:47 -07:00
clidgram.c Import changes from upstream libndr. 2008-10-13 15:01:28 +02:00
clientgen.c Fix a malloc/talloc mismatch when cli_initialise() fails 2009-03-15 12:01:20 +01:00
clierror.c Make map_errno_from_nt_status() a generic call, not just a cli specific one. 2008-10-07 14:43:42 -07:00
clifile.c Split up async_req into a generic and a NTSTATUS specific part 2009-02-01 19:05:39 +01:00
clifsinfo.c [Bug 6069] Add a fstatvfs function for libsmbclient 2009-02-12 10:39:48 -05:00
clikrb5.c Don't miss an absolute pathname as a kerberos keytab path. From Glenn Machin <gmachin@sandia.gov>. 2009-02-17 15:54:33 -08:00
clilist.c Remove the static "struct client_connection" mess which is part of 2009-03-12 17:59:24 -07:00
climessage.c Cleanup size_t return values in convert_string_allocate 2008-04-11 11:33:33 +02:00
clioplock.c
cliprint.c
cliquota.c Add iconv_convenience argument to size functions. 2009-01-01 04:45:33 +01:00
clirap2.c fix build warning. 2008-07-15 23:06:48 +02:00
clirap.c Decouple clistr_pull from struct cli_state->inbuf 2009-01-26 05:39:34 +01:00
clireadwrite.c Revert "s3:libsmb: add an option to cli_push to let the caller provide the buffers" 2009-03-12 11:03:50 +01:00
clisecdesc.c Convert cli_query_secdesc to the async trans call 2008-09-09 17:37:34 +02:00
clispnego.c s3-build: fix some const build warnings. 2008-10-23 01:43:41 +02:00
clistr.c Decouple clistr_pull from struct cli_state->inbuf 2009-01-26 05:39:34 +01:00
clitrans.c s3:libsmb: fix smb signing for fragmented trans/trans2/nttrans requests 2009-03-19 13:54:22 +01:00
conncache.c Cleanup of DC enumeration in get_dcs() 2008-09-04 11:50:25 -07:00
credentials.c s3: use struct netr_Credential in cred_step(). 2009-02-05 00:48:26 +01:00
dsgetdcname.c s3:dsgetdcname: retry with the clients site 2008-12-13 11:47:13 +01:00
errormap.c
libsmb_cache.c
libsmb_compat.c [Bug 6069] Add a fstatvfs function for libsmbclient 2009-02-14 09:44:36 -05:00
libsmb_context.c Remove the global "struct cm_cred_struct" and associated calls, make 2009-03-17 14:53:06 -07:00
libsmb_dir.c Remove the global "struct cm_cred_struct" and associated calls, make 2009-03-17 14:53:06 -07:00
libsmb_file.c Remove the global "struct cm_cred_struct" and associated calls, make 2009-03-17 14:53:06 -07:00
libsmb_misc.c
libsmb_path.c Move some bytes from the data to the text segment 2009-02-21 12:53:49 +01:00
libsmb_printjob.c
libsmb_server.c Make libsmbclient work with DFS 2009-02-20 09:46:46 -05:00
libsmb_setget.c [Bug 6069] Add a fstatvfs function for libsmbclient 2009-02-12 10:39:48 -05:00
libsmb_stat.c Remove the global "struct cm_cred_struct" and associated calls, make 2009-03-17 14:53:06 -07:00
libsmb_xattr.c s3: remove POLICY_HND. 2009-03-18 23:22:29 +01:00
namecache.c s3:namecache: remove unused namecache_shutdown() function 2009-01-27 15:28:06 +01:00
namequery_dc.c s3: Change sockaddr util function names for consistency 2008-12-03 10:40:20 -08:00
namequery.c Interesting C compiler you have there... :-) 2009-02-19 00:52:34 +01:00
nmblib.c Convert name_mangle() to use talloc 2009-02-24 20:40:46 +01:00
nterr.c If we receive a DOS error code, nt_errstr should display it 2009-02-10 21:55:13 +01:00
ntlm_check.c ntlm_check.c: Sync some changes from Samba 4. 2008-11-01 18:50:06 +01:00
ntlmssp_parse.c
ntlmssp_sign.c Fix build with arc4. 2008-09-24 19:20:33 +02:00
ntlmssp.c Remove the static "chal" from ntlmssp.c:get_challenge() 2009-02-21 14:04:14 +01:00
passchange.c Remove pwd_cache.c, it was doing nothing. Make user_name, domain, and 2009-03-13 17:49:24 -07:00
samlogon_cache.c s3: put netsamlogon_cache.tdb into cache_dir instead of lock_dir 2009-01-16 01:02:24 +01:00
smb_seal.c Fix for crash bug freeing a non-malloc'ed buffer if the client sends a non-encrypted packet with the crypto state set. 2008-12-05 13:20:55 -08:00
smb_share_modes.c s3: Add extid to the dev/inode pair 2009-02-19 20:58:26 -08:00
smb_signing.c Fix some nonempty blank lines 2009-03-07 15:27:02 +01:00
smbdes.c Fix "warning: initialization discards qualifiers from pointer target type" 2008-10-12 14:13:24 +02:00
smbencrypt.c Use common byteorder.h. 2008-10-12 16:17:21 +02:00
smberr.c
spnego.c s3-build: fix another build warning with the new ASN1 code. 2008-10-23 11:46:18 +02:00
trustdom_cache.c Revert "Pass NULL to gencache_get when we are not interested in the timeout value" 2008-07-11 17:53:25 +02:00
trusts_util.c s3: remove POLICY_HND. 2009-03-18 23:22:29 +01:00
unexpected.c