提交 3cc54008 编写于 作者: A Andy Polyakov

Pointer to BN_MONT_CTX could be used uninitialized.

上级 ff8bcccd
......@@ -104,7 +104,7 @@ static int generate_key(DH *dh)
int generate_new_key=0;
unsigned l;
BN_CTX *ctx;
BN_MONT_CTX *mont;
BN_MONT_CTX *mont=NULL;
BIGNUM *pub_key=NULL,*priv_key=NULL;
ctx = BN_CTX_new();
......@@ -160,7 +160,7 @@ err:
static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
{
BN_CTX *ctx;
BN_MONT_CTX *mont;
BN_MONT_CTX *mont=NULL;
BIGNUM *tmp;
int ret= -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册