3.2.5.1.8 Processing the Response

The client MUST process the response based on the Command field of the SMB2 header of the response. When the processing is completed, the corresponding request MUST be removed from Connection.OutstandingRequests. The corresponding request MUST also be removed from Open.OutstandingRequests, if it exists.

If the command that is received is not a valid command, or if the server returned a command that did not match the command of the request, the client SHOULD<186> fail the application request with an implementation-specific error that indicates an invalid network response was received.