Author: mjmartin
Date: Sun Feb 8 03:20:11 2009
New Revision: 39479
URL:
http://svn.reactos.org/svn/reactos?rev=39479&view=rev
Log:
- Set Buffer pointer to NULL on failure.
Modified:
trunk/reactos/drivers/filesystems/npfs/create.c
Modified: trunk/reactos/drivers/filesystems/npfs/create.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs/c…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs/create.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/npfs/create.c [iso-8859-1] Sun Feb 8 03:20:11 2009
@@ -253,7 +253,10 @@
/* Not found, bail out with error for FILE_OPEN requests. */
DPRINT("No listening server CCB found!\n");
if (ClientCcb->Data)
+ {
ExFreePool(ClientCcb->Data);
+ ClientCcb->Data = NULL;
+ }
KeUnlockMutex(&Fcb->CcbListLock);
Irp->IoStatus.Status = STATUS_OBJECT_PATH_NOT_FOUND;
IoCompleteRequest(Irp, IO_NO_INCREMENT);