Author: cgutman
Date: Sun Aug 26 20:13:22 2012
New Revision: 57168
URL:
http://svn.reactos.org/svn/reactos?rev=57168&view=rev
Log:
[AFD]
- Fix returning uninitialized data from FIONREAD when the socket is not bound or
connected
Modified:
trunk/reactos/drivers/network/afd/afd/info.c
Modified: trunk/reactos/drivers/network/afd/afd/info.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/afd/afd/in…
==============================================================================
--- trunk/reactos/drivers/network/afd/afd/info.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/afd/afd/info.c [iso-8859-1] Sun Aug 26 20:13:22 2012
@@ -52,11 +52,7 @@
break;
case AFD_INFO_RECEIVE_CONTENT_SIZE:
- /* Only touch InfoReq if a socket has been set up.
- Behaviour was verified under WinXP SP2. */
- if(FCB->AddressFile.Object || FCB->Connection.Object)
- InfoReq->Information.Ulong = FCB->Recv.Content -
FCB->Recv.BytesUsed;
-
+ InfoReq->Information.Ulong = FCB->Recv.Content - FCB->Recv.BytesUsed;
break;
case AFD_INFO_SENDS_IN_PROGRESS: