diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-03-03 05:43:31 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-03-06 21:26:05 +0100 |
commit | f6b6e963f65c39a0b34b5d23919c0c50e3e81168 (patch) | |
tree | 723f3ce852a5b5d6eb110db958a6660eb27239ce /source3/smbd/smb2_tcon.c | |
parent | 6ce72a01abfcffd19313b50e15976582ae84c61c (diff) | |
download | samba-f6b6e963f65c39a0b34b5d23919c0c50e3e81168.tar.gz samba-f6b6e963f65c39a0b34b5d23919c0c50e3e81168.tar.bz2 samba-f6b6e963f65c39a0b34b5d23919c0c50e3e81168.zip |
s3:smbd: keep 'num_connections' and 'connections' directly under smbd_server_connection
The plan is to have connection_struct as some kind of low level
abstraction for a smb1/smb2 tree connects, that can be used by SMB_VFS modules.
metze
Diffstat (limited to 'source3/smbd/smb2_tcon.c')
-rw-r--r-- | source3/smbd/smb2_tcon.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source3/smbd/smb2_tcon.c b/source3/smbd/smb2_tcon.c index 56c42889b6..5f75e5ebe1 100644 --- a/source3/smbd/smb2_tcon.c +++ b/source3/smbd/smb2_tcon.c @@ -131,8 +131,6 @@ static int smbd_smb2_tcon_destructor(struct smbd_smb2_tcon *tcon) idr_remove(tcon->session->tcons.idtree, tcon->tid); DLIST_REMOVE(tcon->session->tcons.list, tcon); - SMB_ASSERT(tcon->session->sconn->num_tcons_open > 0); - tcon->session->sconn->num_tcons_open--; if (tcon->compat_conn) { set_current_service(tcon->compat_conn, 0, true); @@ -226,7 +224,6 @@ static NTSTATUS smbd_smb2_tree_connect(struct smbd_smb2_request *req, DLIST_ADD_END(req->session->tcons.list, tcon, struct smbd_smb2_tcon *); tcon->session = req->session; - tcon->session->sconn->num_tcons_open++; talloc_set_destructor(tcon, smbd_smb2_tcon_destructor); compat_conn = make_connection_smb2(req->sconn, |