fix shadow warning

This commit is contained in:
John Safranek
2013-09-08 17:46:29 -07:00
parent 44ba0af192
commit 0ae966b350

View File

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