Memory sanitizing on BLOB free removed, since BLOBS are encrypted from d15b7066cd on

This commit is contained in:
2016-07-20 08:48:28 +02:00
parent 4630b32f77
commit 40c992e1a5
3 changed files with 8 additions and 2 deletions

View File

@@ -93,8 +93,10 @@ BYTE* eap::module::alloc_memory(_In_ size_t size)
void eap::module::free_memory(_In_ BYTE *ptr)
{
#if !EAP_ENCRYPT_BLOBS
// Since we do security here and some of the BLOBs contain credentials, sanitize every memory block before freeing.
SecureZeroMemory(ptr, HeapSize(m_heap, 0, ptr));
#endif
HeapFree(m_heap, 0, ptr);
}