Fix crash in cancel-tdis lock test. Correctly shut down connection.
authorJeremy Allison <jra@samba.org>
Fri, 7 May 2010 07:33:59 +0000 (00:33 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 7 May 2010 07:33:59 +0000 (00:33 -0700)
Jeremy.

source3/smbd/smb2_tcon.c

index f3efb83c1dedf7a4f11e34f085aac5dff42d3cfb..0f765d662a79dbdba22ca4ab617a81d82e751385 100644 (file)
@@ -128,7 +128,7 @@ static int smbd_smb2_tcon_destructor(struct smbd_smb2_tcon *tcon)
        DLIST_REMOVE(tcon->session->tcons.list, tcon);
 
        if (tcon->compat_conn) {
-               conn_free(tcon->compat_conn);
+               close_cnum(tcon->compat_conn, tcon->session->vuid);
        }
 
        tcon->compat_conn = NULL;