fix shadow warning

This commit is contained in:
John Safranek 2013-09-08 17:46:29 -07:00
parent 44ba0af192
commit 0ae966b350
1 changed files with 4 additions and 4 deletions

View File

@ -1346,15 +1346,15 @@ static int GetCertHeader(DecodedCert* cert)
static int StoreRsaKey(DecodedCert* cert)
{
int length;
word32 read = cert->srcIdx;
word32 recvd = cert->srcIdx;
if (GetSequence(cert->source, &cert->srcIdx, &length, cert->maxIdx) < 0)
return ASN_PARSE_E;
read = cert->srcIdx - read;
length += read;
recvd = cert->srcIdx - recvd;
length += recvd;
while (read--)
while (recvd--)
cert->srcIdx--;
cert->pubKeySize = length;