summaryrefslogtreecommitdiff
path: root/source4/libcli/smb2/tcon.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli/smb2/tcon.c')
-rw-r--r--source4/libcli/smb2/tcon.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/libcli/smb2/tcon.c b/source4/libcli/smb2/tcon.c
index 7b13750cfe..b339d6473e 100644
--- a/source4/libcli/smb2/tcon.c
+++ b/source4/libcli/smb2/tcon.c
@@ -67,6 +67,7 @@ struct smb2_request *smb2_tree_connect_send(struct smb2_tree *tree,
SBVAL(req->out.hdr, SMB2_HDR_UID, tree->session->uid);
SIVAL(req->out.body, 0x00, io->in.unknown1);
status = smb2_push_ofs_blob(req, req->out.body+0x04, path);
+ data_blob_free(&path);
if (!NT_STATUS_IS_OK(status)) {
talloc_free(req);
return NULL;
@@ -92,7 +93,7 @@ NTSTATUS smb2_tree_connect_recv(struct smb2_request *req, struct smb2_tree_conne
return NT_STATUS_BUFFER_TOO_SMALL;
}
- io->out.tid = BVAL(req->in.hdr, SMB2_HDR_TID);
+ io->out.tid = IVAL(req->in.hdr, SMB2_HDR_TID);
io->out.unknown1 = IVAL(req->in.body, 0x00);
io->out.unknown2 = IVAL(req->in.body, 0x04);
@@ -103,7 +104,7 @@ NTSTATUS smb2_tree_connect_recv(struct smb2_request *req, struct smb2_tree_conne
}
/*
- sync session setup request
+ sync tree connect request
*/
NTSTATUS smb2_tree_connect(struct smb2_tree *tree, struct smb2_tree_connect *io)
{