From 590dde753a907e3473fe3d807fb5c872fc0e566a Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Thu, 16 Jan 2014 10:45:52 -0700 Subject: [PATCH] only store issuer into issuerRaw --- ctaocrypt/src/asn.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ctaocrypt/src/asn.c b/ctaocrypt/src/asn.c index a7d0bc45a..ecdd932c8 100644 --- a/ctaocrypt/src/asn.c +++ b/ctaocrypt/src/asn.c @@ -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) {