Author: pschweitzer
Date: Sat May 27 20:20:27 2017
New Revision: 74686
URL:
http://svn.reactos.org/svn/reactos?rev=74686&view=rev
Log:
[RDBSS]
Properly initialize pRdbssScavenger in RxDeviceObject to avoid NULL-ptr deref
CORE-11327
Modified:
trunk/reactos/sdk/lib/drivers/rdbsslib/rdbss.c
Modified: trunk/reactos/sdk/lib/drivers/rdbsslib/rdbss.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/drivers/rdbsslib/r…
==============================================================================
--- trunk/reactos/sdk/lib/drivers/rdbsslib/rdbss.c [iso-8859-1] (original)
+++ trunk/reactos/sdk/lib/drivers/rdbsslib/rdbss.c [iso-8859-1] Sat May 27 20:20:27 2017
@@ -5513,7 +5513,8 @@
RxInitializePrefixTable(RDBSSDevice->pRxNetNameTable, 0, FALSE);
RDBSSDevice->RxNetNameTableInDeviceObject.IsNetNameTable = TRUE;
ScavengerTimeLimit.QuadPart = MrdrDispatch->ScavengerTimeout * 10000000LL;
- RxInitializeRdbssScavenger(&RDBSSDevice->RdbssScavengerInDeviceObject,
ScavengerTimeLimit);
+ RDBSSDevice->pRdbssScavenger =
&RDBSSDevice->RdbssScavengerInDeviceObject;
+ RxInitializeRdbssScavenger(RDBSSDevice->pRdbssScavenger, ScavengerTimeLimit);
}
RDBSSDevice->pAsynchronousRequestsCompletionEvent = NULL;