diff --git a/mozilla/security/nss/lib/smime/cmsdecode.c b/mozilla/security/nss/lib/smime/cmsdecode.c index df6328f7410..602d59a6005 100644 --- a/mozilla/security/nss/lib/smime/cmsdecode.c +++ b/mozilla/security/nss/lib/smime/cmsdecode.c @@ -37,7 +37,7 @@ /* * CMS decoding. * - * $Id: cmsdecode.c,v 1.12 2011-02-11 01:53:17 emaldona%redhat.com Exp $ + * $Id: cmsdecode.c,v 1.13 2011-03-15 17:45:21 emaldona%redhat.com Exp $ */ #include "cmslocal.h" @@ -291,6 +291,9 @@ nss_cms_before_data(NSSCMSDecoderContext *p7dcx) if (childp7dcx->content.pointer == NULL) goto loser; + /* give the parent a copy of the pointer so that it doesn't get lost */ + cinfo->content.pointer = childp7dcx->content.pointer; + /* start the child decoder */ childp7dcx->dcx = SEC_ASN1DecoderStart(poolp, childp7dcx->content.pointer, template);