diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-12-06 17:59:20 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:47:09 -0500 |
commit | 273f340376452bd072b68d0601dde3f7b43b62db (patch) | |
tree | d62e422cedc3ab2fbcd67697db3cb4b5a4fa8c0d /source4/smb_server/management.c | |
parent | 2184ad5af7f354dfb5f8addcb99e69fa2f79df01 (diff) | |
download | samba-273f340376452bd072b68d0601dde3f7b43b62db.tar.gz samba-273f340376452bd072b68d0601dde3f7b43b62db.tar.bz2 samba-273f340376452bd072b68d0601dde3f7b43b62db.zip |
r12102: for SMB2 we need to allocate tcons per session
metze
(This used to be commit 4d527ac005086c2db954578b4126ca128e436e01)
Diffstat (limited to 'source4/smb_server/management.c')
-rw-r--r-- | source4/smb_server/management.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/smb_server/management.c b/source4/smb_server/management.c index d158947ba4..19e2090682 100644 --- a/source4/smb_server/management.c +++ b/source4/smb_server/management.c @@ -71,7 +71,7 @@ static NTSTATUS smbsrv_tcon_information(struct irpc_message *msg, struct smbsrv_tcon *tcon; /* count the number of tcons */ - for (tcon=smb_conn->tcons.list; tcon; tcon=tcon->next) { + for (tcon=smb_conn->smb_tcons.list; tcon; tcon=tcon->next) { count++; } @@ -79,7 +79,7 @@ static NTSTATUS smbsrv_tcon_information(struct irpc_message *msg, r->out.info.tcons.tcons = talloc_array(r, struct smbsrv_tcon_info, count); NT_STATUS_HAVE_NO_MEMORY(r->out.info.tcons.tcons); - for (tcon=smb_conn->tcons.list; tcon; tcon=tcon->next) { + for (tcon=smb_conn->smb_tcons.list; tcon; tcon=tcon->next) { struct smbsrv_tcon_info *info = &r->out.info.tcons.tcons[i]; info->tid = tcon->tid; info->share_name = lp_servicename(tcon->service); |