Skip to content

Commit

Permalink
Uhmmm, if we use && after having tested for the presence of the certi…
Browse files Browse the repository at this point in the history
…ficate,

we just *might* stand a certain chance of actually getting it written
to file...
  • Loading branch information
levitte committed Apr 23, 2002
1 parent af9675e commit 35c2b3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/pem/pem_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ int PEM_X509_INFO_write_bio(BIO *bp, X509_INFO *xi, EVP_CIPHER *enc,
}

/* if we have a certificate then write it out now */
if ((xi->x509 != NULL) || (PEM_write_bio_X509(bp,xi->x509) <= 0))
if ((xi->x509 != NULL) && (PEM_write_bio_X509(bp,xi->x509) <= 0))
goto err;

/* we are ignoring anything else that is loaded into the X509_INFO
Expand Down

0 comments on commit 35c2b3a

Please sign in to comment.