mirror of
https://github.com/samba-team/samba.git
synced 2025-08-26 01:49:31 +03:00
s3:smbd: make sure we don't call conn_free() with a NULL pointer for SMB2
metze
This commit is contained in:
@ -127,7 +127,9 @@ static int smbd_smb2_tcon_destructor(struct smbd_smb2_tcon *tcon)
|
||||
idr_remove(tcon->session->tcons.idtree, tcon->tid);
|
||||
DLIST_REMOVE(tcon->session->tcons.list, tcon);
|
||||
|
||||
conn_free(tcon->compat_conn);
|
||||
if (tcon->compat_conn) {
|
||||
conn_free(tcon->compat_conn);
|
||||
}
|
||||
|
||||
tcon->compat_conn = NULL;
|
||||
tcon->tid = 0;
|
||||
|
Reference in New Issue
Block a user