summaryrefslogtreecommitdiff
path: root/source3/libsmb/smb2cli_tcon.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libsmb/smb2cli_tcon.c')
-rw-r--r--source3/libsmb/smb2cli_tcon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/smb2cli_tcon.c b/source3/libsmb/smb2cli_tcon.c
index b3136fac91..2467ce5821 100644
--- a/source3/libsmb/smb2cli_tcon.c
+++ b/source3/libsmb/smb2cli_tcon.c
@@ -243,7 +243,8 @@ static void smb2cli_tdis_done(struct tevent_req *subreq)
if (tevent_req_nterror(req, status)) {
return;
}
- TALLOC_FREE(state->cli->smb2.tcon);
+ smb2cli_tcon_set_values(state->cli->smb2.tcon, NULL,
+ UINT32_MAX, 0, 0, 0, 0);
tevent_req_done(req);
}