mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 23:55:07 +00:00
[NPFS]
- Fix an access-after-free bug svn path=/trunk/; revision=54330
This commit is contained in:
parent
1534ace5ad
commit
703b182d8f
|
@ -92,6 +92,7 @@ NpfsConnectPipe(PIRP Irp,
|
||||||
PNPFS_FCB Fcb;
|
PNPFS_FCB Fcb;
|
||||||
PNPFS_CCB ClientCcb;
|
PNPFS_CCB ClientCcb;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
KPROCESSOR_MODE WaitMode;
|
||||||
|
|
||||||
DPRINT("NpfsConnectPipe()\n");
|
DPRINT("NpfsConnectPipe()\n");
|
||||||
|
|
||||||
|
@ -124,6 +125,7 @@ NpfsConnectPipe(PIRP Irp,
|
||||||
IoStack = IoGetCurrentIrpStackLocation(Irp);
|
IoStack = IoGetCurrentIrpStackLocation(Irp);
|
||||||
FileObject = IoStack->FileObject;
|
FileObject = IoStack->FileObject;
|
||||||
Flags = FileObject->Flags;
|
Flags = FileObject->Flags;
|
||||||
|
WaitMode = Irp->RequestorMode;
|
||||||
|
|
||||||
/* search for a listening client fcb */
|
/* search for a listening client fcb */
|
||||||
KeLockMutex(&Fcb->CcbListLock);
|
KeLockMutex(&Fcb->CcbListLock);
|
||||||
|
@ -183,7 +185,7 @@ NpfsConnectPipe(PIRP Irp,
|
||||||
{
|
{
|
||||||
KeWaitForSingleObject(&Ccb->ConnectEvent,
|
KeWaitForSingleObject(&Ccb->ConnectEvent,
|
||||||
UserRequest,
|
UserRequest,
|
||||||
Irp->RequestorMode,
|
WaitMode,
|
||||||
(Flags & FO_ALERTABLE_IO),
|
(Flags & FO_ALERTABLE_IO),
|
||||||
NULL);
|
NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue