~ubuntu-branches/ubuntu/hardy/openssl/hardy-security

« back to all changes in this revision

Viewing changes to crypto/x509/x509_v3.c

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2005-12-13 21:37:42 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051213213742-7em5nrw5c7ceegyd
Tags: 0.9.8a-5
Stop ssh from crashing randomly on sparc (Closes: #335912)
Patch from upstream cvs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
        int n;
148
148
        STACK_OF(X509_EXTENSION) *sk=NULL;
149
149
 
150
 
        if ((x != NULL) && (*x == NULL))
 
150
        if (x == NULL)
 
151
                {
 
152
                X509err(X509_F_X509V3_ADD_EXT,ERR_R_PASSED_NULL_PARAMETER);
 
153
                goto err2;
 
154
                }
 
155
 
 
156
        if (*x == NULL)
151
157
                {
152
158
                if ((sk=sk_X509_EXTENSION_new_null()) == NULL)
153
159
                        goto err;
163
169
                goto err2;
164
170
        if (!sk_X509_EXTENSION_insert(sk,new_ex,loc))
165
171
                goto err;
166
 
        if ((x != NULL) && (*x == NULL))
 
172
        if (*x == NULL)
167
173
                *x=sk;
168
174
        return(sk);
169
175
err: