Author: cgutman
Date: Tue Nov 11 19:06:54 2008
New Revision: 37299
URL:
http://svn.reactos.org/svn/reactos?rev=37299&view=rev
Log:
- Remove the irp from the queue when it gets canceled
- Initialize BytesReceived to 0
Modified:
branches/aicom-network-fixes/drivers/network/tcpip/tcpip/dispatch.c
Modified: branches/aicom-network-fixes/drivers/network/tcpip/tcpip/dispatch.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
==============================================================================
--- branches/aicom-network-fixes/drivers/network/tcpip/tcpip/dispatch.c [iso-8859-1]
(original)
+++ branches/aicom-network-fixes/drivers/network/tcpip/tcpip/dispatch.c [iso-8859-1] Tue
Nov 11 19:06:54 2008
@@ -188,6 +188,8 @@
TI_DbgPrint(MIN_TRACE, ("TDI_SEND_DATAGRAM, but no address
file.\n"));
break;
}
+
+ DGRemoveIRP(TranContext->Handle.AddressHandle, Irp);
break;
case TDI_RECEIVE_DATAGRAM:
@@ -767,7 +769,7 @@
PTDI_REQUEST_KERNEL_RECEIVE ReceiveInfo;
PTRANSPORT_CONTEXT TranContext;
NTSTATUS Status;
- ULONG BytesReceived;
+ ULONG BytesReceived = 0;
TI_DbgPrint(DEBUG_IRP, ("Called.\n"));