aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-01-20 16:02:07 +0000
committerMatt Caswell <matt@openssl.org>2017-01-30 10:18:23 +0000
commit1f5b44e943d911c3d0bf1445a6dab60798a66408 (patch)
tree783e9e0cb8a7532f0eecd5b67b77e902aac0e2f0 /apps
parent6df55cac1a2c4441a70d15875ab22530251509ce (diff)
downloadopenssl-1f5b44e943d911c3d0bf1445a6dab60798a66408.tar.gz
Miscellaneous style tweaks based on feedback received
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2259)
Diffstat (limited to 'apps')
-rw-r--r--apps/s_client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/s_client.c b/apps/s_client.c
index 362f005cc5..99770b9b97 100644
--- a/apps/s_client.c
+++ b/apps/s_client.c
@@ -784,11 +784,11 @@ static int new_session_cb(SSL *S, SSL_SESSION *sess)
{
BIO *stmp = BIO_new_file(sess_out, "w");
- if (stmp != NULL) {
+ if (stmp == NULL) {
+ BIO_printf(bio_err, "Error writing session file %s\n", sess_out);
+ } else {
PEM_write_bio_SSL_SESSION(stmp, sess);
BIO_free(stmp);
- } else {
- BIO_printf(bio_err, "Error writing session file %s\n", sess_out);
}
/*