From d4999fe5376e7b4ee11a8799100eef081e73282f Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 2 Sep 2010 07:46:36 +0200 Subject: [PATCH] more fixes :P --- d0_bignum-openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d0_bignum-openssl.c b/d0_bignum-openssl.c index 60bba73..9e45f7f 100644 --- a/d0_bignum-openssl.c +++ b/d0_bignum-openssl.c @@ -250,7 +250,7 @@ d0_bignum_t *d0_bignum_divmod(d0_bignum_t *q, d0_bignum_t *m, const d0_bignum_t assert(!"I know this code is broken (rounds towards zero), need handle negative correctly"); } else - BN_nnmod(&q->z, &a->z, &b->z, ctx); + BN_nnmod(&m->z, &a->z, &b->z, ctx); if(m) return m; else -- 2.39.2