Initialize variable
newsig may be used (freed) uninitialized on a malloc error. Reviewed-by: Rich Salz <rsalz@openssl.org> (cherry picked from commit 68249414405500660578b337f1c8dd5dd4bb5bcc)
This commit is contained in:
parent
496c79f60c
commit
5c4fd8b515
@ -53,7 +53,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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user