--- smb2pdu.c.orig 2017-01-20 19:58:34.581064153 +0100 +++ smb2pdu.c 2017-01-20 20:19:23.124772222 +0100 @@ -172,7 +172,14 @@ return rc; if (smb2_command == SMB2_TREE_CONNECT) + { + if (tcon->tid != 0) + { + WARN(1, "%s: SMB2_TREE_CONNECT with tid != 0\n", __func__); + tcon->tid = 0; + } return rc; + } if (tcon->tidStatus == CifsExiting) { /*