Make conn_close_all() safe to call from SMB2 sessions (fix crash bug).
commitd1950d66c4ed38918323bdb8c0bb11700a47bdc3
authorJeremy Allison <jra@samba.org>
Thu, 25 Feb 2010 02:11:07 +0000 (24 18:11 -0800)
committerJeremy Allison <jra@samba.org>
Thu, 25 Feb 2010 02:11:07 +0000 (24 18:11 -0800)
tree0101c666e0272d8665cc09bccbdfb461f436a2bc
parent3c202519eccfa1922f315e2f2910d832016ad3f1
Make conn_close_all() safe to call from SMB2 sessions (fix crash bug).

Ensure we don't call close_cnum() with SMB2, also talloc_move the
compat_conn pointer from the NULL context onto the tcon context
in SMB2 as it's conceptually owned by that pointer.

Jeremy.
source3/smbd/conn.c
source3/smbd/smb2_tcon.c