summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorJ Mohan Rao Arisankala <mohan@barracuda.com>2016-05-06 07:05:44 +0530
committerMatt Caswell <matt@openssl.org>2016-05-09 09:06:06 +0100
commite0d32e98f00cfd39977593ae1bc6cfd2ab6bbb0e (patch)
treee38e468c50bbafe9079b0f587638be471b857582 /crypto
parentcb1d435cac2a9a7bd6019f9f23648c8075251109 (diff)
fix check
Reviewed-by: Kurt Roeckx <kurt@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/evp/bio_b64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/bio_b64.c b/crypto/evp/bio_b64.c
index 6a95cf6dd6..76fe9e3600 100644
--- a/crypto/evp/bio_b64.c
+++ b/crypto/evp/bio_b64.c
@@ -122,12 +122,12 @@ static int b64_new(BIO *bi)
ctx->cont = 1;
ctx->start = 1;
+ ctx->base64 = EVP_ENCODE_CTX_new();
if (ctx->base64 == NULL) {
OPENSSL_free(ctx);
return 0;
}
- ctx->base64 = EVP_ENCODE_CTX_new();
BIO_set_data(bi, ctx);
BIO_set_init(bi, 1);