[RDBSS]
authorPierre Schweitzer <pierre@reactos.org>
Sat, 27 May 2017 20:20:27 +0000 (20:20 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 27 May 2017 20:20:27 +0000 (20:20 +0000)
Properly initialize pRdbssScavenger in RxDeviceObject to avoid NULL-ptr deref

CORE-11327

svn path=/trunk/; revision=74686

reactos/sdk/lib/drivers/rdbsslib/rdbss.c

index ae0e6f1..681a463 100644 (file)
@@ -5513,7 +5513,8 @@ RxRegisterMinirdr(
         RxInitializePrefixTable(RDBSSDevice->pRxNetNameTable, 0, FALSE);
         RDBSSDevice->RxNetNameTableInDeviceObject.IsNetNameTable = TRUE;
         ScavengerTimeLimit.QuadPart = MrdrDispatch->ScavengerTimeout * 10000000LL;
         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;
     }
 
     RDBSSDevice->pAsynchronousRequestsCompletionEvent = NULL;