When creating a BN_CTX, make sure we store it in the right variable!
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/9546)
BN_CTX *new_ctx = NULL;
if (ctx == NULL)
- new_ctx = BN_CTX_new();
+ ctx = new_ctx = BN_CTX_new();
#endif
if (ctx == NULL)
return 0;
#ifndef FIPS_MODE
if (ctx == NULL)
- new_ctx = BN_CTX_new();
+ ctx = new_ctx = BN_CTX_new();
#endif
if (ctx == NULL)
return 0;
BN_CTX *new_ctx = NULL;
if (ctx == NULL)
- new_ctx = BN_CTX_new();
+ ctx = new_ctx = BN_CTX_new();
#endif
if (ctx == NULL)
return 0;
#ifndef FIPS_MODE
if (ctx == NULL)
- new_ctx = BN_CTX_new();
+ ctx = new_ctx = BN_CTX_new();
#endif
if (ctx == NULL)
return 0;
BN_CTX *new_ctx = NULL;
if (ctx == NULL)
- new_ctx = BN_CTX_new();
+ ctx = new_ctx = BN_CTX_new();
#endif
if (ctx == NULL)
return 0;
#ifndef FIPS_MODE
if (ctx == NULL)
- new_ctx = BN_CTX_new();
+ ctx = new_ctx = BN_CTX_new();
#endif
if (ctx == NULL)
return 0;