crypt32: Correct last error when no data are passed to CRYPT_AsnDecodeInt.
This commit is contained in:
parent
88a1ecb695
commit
916e47861a
|
@ -3454,7 +3454,7 @@ static BOOL WINAPI CRYPT_AsnDecodeInt(DWORD dwCertEncodingType,
|
||||||
|
|
||||||
if (!cbEncoded)
|
if (!cbEncoded)
|
||||||
{
|
{
|
||||||
SetLastError(CRYPT_E_ASN1_CORRUPT);
|
SetLastError(CRYPT_E_ASN1_EOD);
|
||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
}
|
}
|
||||||
else if (pbEncoded[0] != ASN_INTEGER)
|
else if (pbEncoded[0] != ASN_INTEGER)
|
||||||
|
|
Loading…
Reference in New Issue