[RDBSS]
authorPierre Schweitzer <pierre@reactos.org>
Thu, 3 Aug 2017 20:47:41 +0000 (20:47 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Thu, 3 Aug 2017 20:47:41 +0000 (20:47 +0000)
Don't attempt to dereference NULL-ptr if CCB isn't set.
Fixes crash in RxFsdCommonDispatch() under rare circumstances.

CORE-11327

svn path=/trunk/; revision=75474

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

index 5a9a832..0f27fe9 100644 (file)
@@ -5984,7 +5984,7 @@ RxFsdCommonDispatch(
                 Fobx = StackFileObject->FsContext2;
 
                 if (BooleanFlagOn(Fcb->FcbState, FCB_STATE_ORPHANED) ||
                 Fobx = StackFileObject->FsContext2;
 
                 if (BooleanFlagOn(Fcb->FcbState, FCB_STATE_ORPHANED) ||
-                    BooleanFlagOn(Fobx->pSrvOpen->Flags, SRVOPEN_FLAG_ORPHANED))
+                    ((Fobx != NULL) && BooleanFlagOn(Fobx->pSrvOpen->Flags, SRVOPEN_FLAG_ORPHANED)))
                 {
                     if (Closing)
                     {
                 {
                     if (Closing)
                     {