From 0ae966b350fe180f673f2c3e15836292c542742c Mon Sep 17 00:00:00 2001 From: John Safranek Date: Sun, 8 Sep 2013 17:46:29 -0700 Subject: [PATCH] fix shadow warning --- ctaocrypt/src/asn.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ctaocrypt/src/asn.c b/ctaocrypt/src/asn.c index f228f9f0c..4ee25bee4 100644 --- a/ctaocrypt/src/asn.c +++ b/ctaocrypt/src/asn.c @@ -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;