~ubuntu-branches/ubuntu/lucid/openssl/lucid-proposed

« back to all changes in this revision

Viewing changes to crypto/asn1/tasn_fre.c

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2009-06-13 18:15:46 UTC
  • mto: (11.1.5 squeeze)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: james.westby@ubuntu.com-20090613181546-vbfntai3b009dl1u
Tags: upstream-0.9.8k
ImportĀ upstreamĀ versionĀ 0.9.8k

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* tasn_fre.c */
2
 
/* Written by Dr Stephen N Henson (shenson@bigfoot.com) for the OpenSSL
 
2
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3
3
 * project 2000.
4
4
 */
5
5
/* ====================================================================
115
115
                                return;
116
116
                        }
117
117
                i = asn1_get_choice_selector(pval, it);
118
 
                if (asn1_cb)
119
 
                        asn1_cb(ASN1_OP_FREE_PRE, pval, it);
120
118
                if ((i >= 0) && (i < it->tcount))
121
119
                        {
122
120
                        ASN1_VALUE **pchval;
221
219
                {
222
220
                ASN1_TYPE *typ = (ASN1_TYPE *)*pval;
223
221
                utype = typ->type;
224
 
                pval = (ASN1_VALUE **)&typ->value.ptr;
 
222
                pval = &typ->value.asn1_value;
225
223
                if (!*pval)
226
224
                        return;
227
225
                }