From: Emilia Kasper Date: Tue, 14 Apr 2015 15:42:42 +0000 (+0200) Subject: Initialize variable X-Git-Tag: OpenSSL_1_1_0-pre1~1319 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=68249414405500660578b337f1c8dd5dd4bb5bcc;p=oweals%2Fopenssl.git Initialize variable newsig may be used (freed) uninitialized on a malloc error. Reviewed-by: Rich Salz --- diff --git a/engines/ccgost/gost_sign.c b/engines/ccgost/gost_sign.c index fad2004361..1d7ed86da2 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();