]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
* dsa-sign.c (dsa_sign): Bugfix, added missing mpz_init call.
authorNiels Möller <nisse@lysator.liu.se>
Wed, 9 Oct 2002 18:31:04 +0000 (20:31 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Wed, 9 Oct 2002 18:31:04 +0000 (20:31 +0200)
Rev: src/nettle/dsa-sign.c:1.2

dsa-sign.c

index a22b0a52a3674836616d2185945bf33bc83a3872..3a69a216c35f903ba1780c92d5b407f92c1569e3 100644 (file)
@@ -94,6 +94,7 @@ dsa_sign(struct dsa_private_key *key,
   mpz_fdiv_r(signature->r, tmp, key->pub.q);
 
   /* Compute hash */
+  mpz_init(h);
   _dsa_hash(h, hash);
 
   /* Compute k^-1 (mod q) */