s3:smbd: remove use of close_cnum() in smbd_smb2_tree_connect()
authorMichael Adam <obnox@samba.org>
Tue, 22 May 2012 11:45:57 +0000 (13:45 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 1 Jun 2012 09:53:45 +0000 (11:53 +0200)
The cleanup is now done in the destructor for smbXsrv_tcon.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

source3/smbd/smb2_tcon.c

index 160bbdedf6fca3953c910948b55405337174f43d..9de91603c6c82e22a1969c7a73efb9001a4e6e0a 100644 (file)
@@ -252,7 +252,6 @@ static NTSTATUS smbd_smb2_tree_connect(struct smbd_smb2_request *req,
 
        status = smbXsrv_tcon_update(tcon);
        if (!NT_STATUS_IS_OK(status)) {
-               close_cnum(tcon->compat, tcon->compat->vuid);
                TALLOC_FREE(tcon);
                return status;
        }