[FLTMGR] Properly allocate CCB in CreatePortCCB()

CID 1427031
This commit is contained in:
Pierre Schweitzer 2018-01-06 13:54:21 +01:00
parent f5d366b200
commit 48382d1448
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -817,7 +817,7 @@ CreatePortCCB(_In_ PFLT_PORT_OBJECT PortObject)
PPORT_CCB PortCCB;
/* Allocate a CCB struct to hold the client port object info */
PortCCB = ExAllocatePoolWithTag(NonPagedPool, sizeof(PPORT_CCB), FM_TAG_CCB);
PortCCB = ExAllocatePoolWithTag(NonPagedPool, sizeof(PORT_CCB), FM_TAG_CCB);
if (PortCCB)
{
/* Initialize the structure */
@ -828,4 +828,4 @@ CreatePortCCB(_In_ PFLT_PORT_OBJECT PortObject)
}
return PortCCB;
}
}