diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-07-23 22:11:19 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-07-24 22:20:06 +0200 |
commit | 41538b17c5420b1e8e45d3e2987c77bc79c14de5 (patch) | |
tree | 7e81704fbb5f75ae4a3254efdf7e292a732d6d06 /source4/libcli/smb2/tcon.c | |
parent | b9100a7ac443159716398aaadfab34af64d8858b (diff) | |
download | samba-41538b17c5420b1e8e45d3e2987c77bc79c14de5.tar.gz samba-41538b17c5420b1e8e45d3e2987c77bc79c14de5.tar.bz2 samba-41538b17c5420b1e8e45d3e2987c77bc79c14de5.zip |
s4:libcli/smb2: setup a smbXcli_tcon for each smb2_tree
metze
Diffstat (limited to 'source4/libcli/smb2/tcon.c')
-rw-r--r-- | source4/libcli/smb2/tcon.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/libcli/smb2/tcon.c b/source4/libcli/smb2/tcon.c index 3a0f246022..b13b5c1c51 100644 --- a/source4/libcli/smb2/tcon.c +++ b/source4/libcli/smb2/tcon.c @@ -22,6 +22,7 @@ #include "includes.h" #include "libcli/smb2/smb2.h" #include "libcli/smb2/smb2_calls.h" +#include "../libcli/smb/smbXcli_base.h" /* initialise a smb2_session structure @@ -40,6 +41,13 @@ struct smb2_tree *smb2_tree_init(struct smb2_session *session, } else { tree->session = talloc_reference(tree, session); } + + tree->smbXcli = smbXcli_tcon_create(tree); + if (tree->smbXcli == NULL) { + talloc_free(tree); + return NULL; + } + return tree; } |