mirror of
https://github.com/reactos/reactos.git
synced 2025-01-07 14:51:00 +00:00
[NPFS]
- Fix an access-after-free bug svn path=/trunk/; revision=54330
This commit is contained in:
parent
1534ace5ad
commit
703b182d8f
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue