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

« back to all changes in this revision

Viewing changes to crypto/x509v3/v3_cpols.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
/* v3_cpols.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 1999.
4
4
 */
5
5
/* ====================================================================
181
181
                        pol = POLICYINFO_new();
182
182
                        pol->policyid = pobj;
183
183
                }
184
 
                sk_POLICYINFO_push(pols, pol);
 
184
                if (!sk_POLICYINFO_push(pols, pol)){
 
185
                        POLICYINFO_free(pol);
 
186
                        X509V3err(X509V3_F_R2I_CERTPOL, ERR_R_MALLOC_FAILURE);
 
187
                        goto err;
 
188
                }
185
189
        }
186
190
        sk_CONF_VALUE_pop_free(vals, X509V3_conf_free);
187
191
        return pols;
447
451
                BIO_printf(out, "%*sNo Qualifiers\n", indent + 2, "");
448
452
        }
449
453
        
 
454
IMPLEMENT_STACK_OF(X509_POLICY_NODE)