Skip to content

Commit

Permalink
lwio: Drop interim response packet when it was not requested
Browse files Browse the repository at this point in the history
(lwio: r62768)
  • Loading branch information
Unknown authored and gitsync committed Jan 3, 2012
1 parent b08ee33 commit 15aa4b9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lwio/server/rdr/socket.c
Expand Up @@ -1369,6 +1369,13 @@ RdrSocketDispatchPacket2(
/* Response? */
if (pPacket->pSMB2Header->ulFlags & SMB2_FLAGS_SERVER_TO_REDIR)
{
if ((pPacket->pSMB2Header->ulFlags & SMB2_FLAGS_ASYNC_COMMAND) &&
pPacket->pSMB2Header->error == STATUS_PENDING)
{
LWIO_LOG_DEBUG("Discarding interim response: %u", (unsigned int) pPacket->pSMB2Header->command);
goto cleanup;
}

/*
* Grab sequence number so we can look up associated request.
* Note that we only need the lower 16 bits to distinguish between
Expand Down

0 comments on commit 15aa4b9

Please sign in to comment.