Commit 9c672fea authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Get rid of an unneeded variable.

parent 373e9f62
......@@ -617,15 +617,12 @@ static BOOL CRYPT_AsnDecodeArray(const struct AsnArrayDescriptor *arrayDesc,
for (ptr = pbEncoded + 1 + lenBytes; ret && !doneDecoding; )
{
DWORD itemLenBytes;
itemLenBytes = GET_LEN_BYTES(ptr[1]);
if (dataLen == CMSG_INDEFINITE_LENGTH)
{
if (ptr[0] == 0)
{
doneDecoding = TRUE;
if (itemLenBytes != 1 || ptr[1] != 0)
if (ptr[1] != 0)
{
SetLastError(CRYPT_E_ASN1_CORRUPT);
ret = FALSE;
......@@ -649,7 +646,8 @@ static BOOL CRYPT_AsnDecodeArray(const struct AsnArrayDescriptor *arrayDesc,
if (itemDataLen == CMSG_INDEFINITE_LENGTH)
itemEncoded = cbEncoded - (ptr - pbEncoded);
else
itemEncoded = 1 + itemLenBytes + itemDataLen;
itemEncoded = 1 + GET_LEN_BYTES(ptr[1]) +
itemDataLen;
}
if (ret)
ret = arrayDesc->decodeFunc(ptr, itemEncoded,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment