summaryrefslogtreecommitdiff
path: root/source3/smbd/proto.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-01-18 12:38:14 -0800
committerJeremy Allison <jra@samba.org>2012-01-18 23:14:32 +0100
commit39c627b60754bd89c419b2d7e32d32c7a9af5a11 (patch)
treece48972e05502e079aabcfa24164714200b70e6e /source3/smbd/proto.h
parent6d141282424f1eb62ee225a32e376162b773e7a8 (diff)
downloadsamba-39c627b60754bd89c419b2d7e32d32c7a9af5a11.tar.gz
samba-39c627b60754bd89c419b2d7e32d32c7a9af5a11.tar.bz2
samba-39c627b60754bd89c419b2d7e32d32c7a9af5a11.zip
Fix bug 8710 - connections.tdb - major leak with SMB2.
Ensure the cnum used to claim the connection for SMB2 is the id that will be used for the SMB2 tcon. Based on code from Ira Cooper <ira@wakeful.net>. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Jan 18 23:14:32 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/smbd/proto.h')
-rw-r--r--source3/smbd/proto.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h
index 92b1443a98..d4ee4d25ba 100644
--- a/source3/smbd/proto.h
+++ b/source3/smbd/proto.h
@@ -971,8 +971,10 @@ bool set_current_service(connection_struct *conn, uint16 flags, bool do_chdir);
void load_registry_shares(void);
int add_home_service(const char *service, const char *username, const char *homedir);
int find_service(TALLOC_CTX *ctx, const char *service, char **p_service_out);
-connection_struct *make_connection_snum(struct smbd_server_connection *sconn,
- int snum, user_struct *vuser,
+struct smbd_smb2_tcon;
+connection_struct *make_connection_smb2(struct smbd_server_connection *sconn,
+ struct smbd_smb2_tcon *tcon,
+ user_struct *vuser,
DATA_BLOB password,
const char *pdev,
NTSTATUS *pstatus);