diff options
author | Emilia Kasper <emilia@openssl.org> | 2015-04-14 17:42:42 +0200 |
---|---|---|
committer | Emilia Kasper <emilia@openssl.org> | 2015-04-15 14:19:12 +0200 |
commit | 68249414405500660578b337f1c8dd5dd4bb5bcc (patch) | |
tree | 280abead8b798166b1c1f878e6916c0f913807d0 /engines | |
parent | 5e0a80c1c9b2b06c2d203ad89778ce1b98e0b5ad (diff) | |
download | openssl-68249414405500660578b337f1c8dd5dd4bb5bcc.zip openssl-68249414405500660578b337f1c8dd5dd4bb5bcc.tar.gz openssl-68249414405500660578b337f1c8dd5dd4bb5bcc.tar.bz2 |
Initialize variable
newsig may be used (freed) uninitialized on a malloc error.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'engines')
-rw-r--r-- | engines/ccgost/gost_sign.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/ccgost/gost_sign.c b/engines/ccgost/gost_sign.c index fad2004..1d7ed86 100644 --- a/engines/ccgost/gost_sign.c +++ b/engines/ccgost/gost_sign.c @@ -54,7 +54,7 @@ void dump_dsa_sig(const char *message, DSA_SIG *sig) DSA_SIG *gost_do_sign(const unsigned char *dgst, int dlen, DSA *dsa) { BIGNUM *k = NULL, *tmp = NULL, *tmp2 = NULL; - DSA_SIG *newsig, *ret = NULL; + DSA_SIG *newsig = NULL, *ret = NULL; BIGNUM *md = hashsum2bn(dgst); /* check if H(M) mod q is zero */ BN_CTX *ctx = BN_CTX_new(); |