3.2.5.4 Receiving an SMB2 LOGOFF Response

The client MUST locate the session in Connection.SessionTable using the SessionId in the SMB2 header of the response. The associated session object MUST be removed from Connection.SessionTable.

If Connection.Dialect belongs to the SMB 3.x dialect family, the client MUST locate the Session in Session.ChannelList and remove all entries.

For each connection in ConnectionTable, the associated session object MUST be removed.

The client MUST return success to the application that requested the authenticated context termination, and it MUST invalidate the Session handle.