1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/libcli
Stefan Metzmacher 00e417ffa0 libcli/smb: handle a talloc_free() on an unsent smb1 request
When a the higher level does a TALLOC_FREE() on an already
queued request, we need to check whether we already sent a byte,
if not we can try to unwind the smb1 signing sequence number,
if there was only one pending request, in all other cases
we need to disconnect the connection.

I noticed that when seeing during an smb1cli_close()
from tstream_smbXcli_np_destructor().

TODO: we may want to have a similar smbXcli_conn_cancel_read_req() in future.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2016-10-26 11:20:12 +02:00
..
auth libcli/auth: remove unused variable in msrpc_parse() 2016-07-06 19:07:16 +02:00
cldap s3: cldap: cldap_multi_netlogon_send() fails with one bad IPv6 address. 2016-10-18 02:16:20 +02:00
dns libdns: Small cleanup 2015-12-08 23:01:28 +01:00
drsuapi werror: replace WERR_SEC_E_DECRYPT_FAILURE with HRES_SEC_E_DECRYPT_FAILURE 2016-09-28 00:04:35 +02:00
echo libcli/echo: validate the message length 2012-09-22 04:31:06 +02:00
ldap typo: mplementation => implementation 2016-05-06 05:03:16 +02:00
lsarpc libcli/lsarpc: add struct trustAuthInOutBlob; forward declaration 2014-04-02 09:03:42 +02:00
named_pipe_auth libcli/named_pipe_auth: call smb_set_close_on_exec() in tstream_npa_socketpair() 2015-06-05 14:33:19 +02:00
nbt dlist: remove unneeded type argument from DLIST_ADD_END() 2016-02-06 21:48:17 +01:00
netlogon libcli/netlogon: We need to handle a bug in FreeIPA (at least <= 4.1.2). 2015-01-05 17:01:08 +01:00
registry build: Make util_reg subsystem in libcli/registry a library 2011-05-18 16:12:08 +02:00
samsync s3: add some forward declarations. 2011-04-12 12:20:43 +02:00
security libcli: Remove code clone 2016-10-13 18:13:45 +02:00
smb libcli/smb: handle a talloc_free() on an unsent smb1 request 2016-10-26 11:20:12 +02:00
smbreadline Change the libreadline word-break character set to only space, TAB and NL so that we can attempt to do tab completion across backslashes. 2015-10-07 04:16:24 +02:00
util werror: removed WERR_RPC_E_INVALID_HEADER (unused, already known as HRES_RPC_E_INVALID_HEADER) 2016-09-28 00:04:36 +02:00