crypt32: Set size when calling CryptDecodeObjectEx without CRYPT_DECODE_ALLOC_FLAG set.
This commit is contained in:
parent
9c672fea41
commit
4690a9c800
|
@ -251,7 +251,7 @@ static BOOL WINAPI CertContext_GetProperty(void *context, DWORD dwPropId,
|
||||||
if (ext)
|
if (ext)
|
||||||
{
|
{
|
||||||
CRYPT_DATA_BLOB value;
|
CRYPT_DATA_BLOB value;
|
||||||
DWORD size;
|
DWORD size = sizeof(value);
|
||||||
|
|
||||||
ret = CryptDecodeObjectEx(X509_ASN_ENCODING,
|
ret = CryptDecodeObjectEx(X509_ASN_ENCODING,
|
||||||
szOID_SUBJECT_KEY_IDENTIFIER, ext->Value.pbData,
|
szOID_SUBJECT_KEY_IDENTIFIER, ext->Value.pbData,
|
||||||
|
|
Loading…
Reference in New Issue