From d0e7aaf1be5be27125d3197ff7ab60ed9fccec8f Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Fri, 19 Oct 2007 13:36:03 -0700 Subject: [PATCH] crypt32: Initialize mask when allocating it. --- dlls/crypt32/cert.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/crypt32/cert.c b/dlls/crypt32/cert.c index 24519736432..d356c405037 100644 --- a/dlls/crypt32/cert.c +++ b/dlls/crypt32/cert.c @@ -1939,7 +1939,10 @@ static void CRYPT_SetBitInField(struct BitField *field, DWORD bit) else field->indexes = CryptMemAlloc(sizeof(DWORD)); if (field->indexes) + { + field->indexes[indexIndex] = 0; field->cIndexes = indexIndex + 1; + } } if (field->indexes) field->indexes[indexIndex] |= 1 << (bit % BITS_PER_DWORD);