mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +00:00
[NPFS]
- Fix an access-after-free bug svn path=/trunk/; revision=54330
This commit is contained in:
@@ -92,6 +92,7 @@ NpfsConnectPipe(PIRP Irp,
|
||||
PNPFS_FCB Fcb;
|
||||
PNPFS_CCB ClientCcb;
|
||||
NTSTATUS Status;
|
||||
KPROCESSOR_MODE WaitMode;
|
||||
|
||||
DPRINT("NpfsConnectPipe()\n");
|
||||
|
||||
@@ -124,6 +125,7 @@ NpfsConnectPipe(PIRP Irp,
|
||||
IoStack = IoGetCurrentIrpStackLocation(Irp);
|
||||
FileObject = IoStack->FileObject;
|
||||
Flags = FileObject->Flags;
|
||||
WaitMode = Irp->RequestorMode;
|
||||
|
||||
/* search for a listening client fcb */
|
||||
KeLockMutex(&Fcb->CcbListLock);
|
||||
@@ -183,7 +185,7 @@ NpfsConnectPipe(PIRP Irp,
|
||||
{
|
||||
KeWaitForSingleObject(&Ccb->ConnectEvent,
|
||||
UserRequest,
|
||||
Irp->RequestorMode,
|
||||
WaitMode,
|
||||
(Flags & FO_ALERTABLE_IO),
|
||||
NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user