1
0
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:
Stefan Metzmacher
2009-08-11 18:09:05 +02:00
parent d30b1c9fa9
commit fedac72dfc

View File

@ -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;