only store issuer into issuerRaw

This commit is contained in:
Chris Conlon 2014-01-16 10:45:52 -07:00
parent 36f78c5e1d
commit 590dde753a

View File

@ -1618,8 +1618,10 @@ static int GetName(DecodedCert* cert, int nameType)
#ifdef HAVE_PKCS7
/* store pointer to raw issuer */
cert->issuerRaw = &cert->source[cert->srcIdx];
cert->issuerRawLen = length - cert->srcIdx;
if (nameType == ISSUER) {
cert->issuerRaw = &cert->source[cert->srcIdx];
cert->issuerRawLen = length - cert->srcIdx;
}
#endif
while (cert->srcIdx < (word32)length) {