From: Jeremy Allison Date: Fri, 7 May 2010 07:33:59 +0000 (-0700) Subject: Fix crash in cancel-tdis lock test. Correctly shut down connection. X-Git-Tag: samba-3.6.0pre1~2187 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=882fb1828f766f2c532c32472ab7ab81f03cd906;p=thirdparty%2Fsamba.git Fix crash in cancel-tdis lock test. Correctly shut down connection. Jeremy. --- diff --git a/source3/smbd/smb2_tcon.c b/source3/smbd/smb2_tcon.c index f3efb83c1de..0f765d662a7 100644 --- a/source3/smbd/smb2_tcon.c +++ b/source3/smbd/smb2_tcon.c @@ -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;