summaryrefslogtreecommitdiffstats
path: root/modules/ssl/ssl_util_ssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/ssl/ssl_util_ssl.c')
-rw-r--r--modules/ssl/ssl_util_ssl.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/ssl/ssl_util_ssl.c b/modules/ssl/ssl_util_ssl.c
index df25c49925..f3e9ee62a4 100644
--- a/modules/ssl/ssl_util_ssl.c
+++ b/modules/ssl/ssl_util_ssl.c
@@ -546,22 +546,26 @@ apr_status_t modssl_read_cert(apr_pool_t *p,
in = BIO_new_mem_buf(cert_pem, -1);
if (in == NULL) {
- rv = APR_ENOMEM; goto cleanup;
+ rv = APR_ENOMEM;
+ goto cleanup;
}
x = PEM_read_bio_X509(in, NULL, cb, ud);
if (x == NULL) {
- rv = APR_ENOENT; goto cleanup;
+ rv = APR_ENOENT;
+ goto cleanup;
}
BIO_free(in);
in = BIO_new_mem_buf(key_pem? key_pem : cert_pem, -1);
if (in == NULL) {
- rv = APR_ENOMEM; goto cleanup;
+ rv = APR_ENOMEM;
+ goto cleanup;
}
key = PEM_read_bio_PrivateKey(in, NULL, cb, ud);
if (key == NULL) {
- rv = APR_ENOENT; goto cleanup;
+ rv = APR_ENOENT;
+ goto cleanup;
}
cleanup: