serial int init bug fix submitted by eof

This commit is contained in:
Todd A Ouska 2011-04-07 08:56:34 -07:00
parent cf978c8189
commit 8a31288c95

View File

@ -876,7 +876,7 @@ static int GetCertHeader(DecodedCert* cert, word32 inSz)
return ASN_PARSE_E; return ASN_PARSE_E;
if (GetInt(&mpi, cert->source, &cert->srcIdx) < 0) if (GetInt(&mpi, cert->source, &cert->srcIdx) < 0)
ret = ASN_PARSE_E; return ASN_PARSE_E;
len = mp_unsigned_bin_size(&mpi); len = mp_unsigned_bin_size(&mpi);
if (len > SERIAL_SIZE) if (len > SERIAL_SIZE)