aboutsummaryrefslogtreecommitdiff
path: root/crypto/pem/pem_info.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-04-23 13:15:08 +0000
committerRichard Levitte <levitte@openssl.org>2002-04-23 13:15:08 +0000
commit35c2b3a9ac55646c332d13147a304d815ebf4cdb (patch)
tree11cb47d06279a18f98d501af72fcc729f9da63fb /crypto/pem/pem_info.c
parentaf9675e75a5f9087f525d4d8fe5c66104fbcf970 (diff)
downloadopenssl-35c2b3a9ac55646c332d13147a304d815ebf4cdb.zip
openssl-35c2b3a9ac55646c332d13147a304d815ebf4cdb.tar.gz
openssl-35c2b3a9ac55646c332d13147a304d815ebf4cdb.tar.bz2
Uhmmm, if we use && after having tested for the presence of the certificate,
we just *might* stand a certain chance of actually getting it written to file...
Diffstat (limited to 'crypto/pem/pem_info.c')
-rw-r--r--crypto/pem/pem_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/pem/pem_info.c b/crypto/pem/pem_info.c
index dba1c43..27bcc25 100644
--- a/crypto/pem/pem_info.c
+++ b/crypto/pem/pem_info.c
@@ -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