From 39c627b60754bd89c419b2d7e32d32c7a9af5a11 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 18 Jan 2012 12:38:14 -0800 Subject: 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 . Autobuild-User: Jeremy Allison Autobuild-Date: Wed Jan 18 23:14:32 CET 2012 on sn-devel-104 --- source3/smbd/proto.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/smbd/proto.h') 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); -- cgit