libcli/smb: add tstream_smbXcli_np_disconnect_cleanup() to handle talloc_free(req)
authorStefan Metzmacher <metze@samba.org>
Sun, 16 Mar 2014 10:50:39 +0000 (11:50 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 24 Mar 2014 23:45:28 +0000 (00:45 +0100)
commit5b1d9f7a8277112f467fbcfc8048fbb71374bd9a
treee734164008a1d58f91748ae1d3cc588d6d7523da
parent6260de72213fafc6f931b9dea35ddb95a188d075
libcli/smb: add tstream_smbXcli_np_disconnect_cleanup() to handle talloc_free(req)

If the tevent_req of tstream_smbXcli_np_disconnect_* is explicitly or
implicitly free'ed, we need to make sure we still deliver the
close request to the server! Otherwise the SMB signing sequence gets out of
sync.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
libcli/smb/tstream_smbXcli_np.c