Changes needed for Tandem NSK, supplied by Scott Uroff (scott@xypro.com).
[openssl.git] / crypto / bn / bn_div.c
index 07af1d3b449b2c98baf9c9bbc9a208f8b2434dfd..c3772c243be575d8c321bc4f22fe3bc215008d59 100644 (file)
@@ -205,7 +205,7 @@ int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
        BN_init(&wnum);
        wnum.d=  &(snum->d[loop]);
        wnum.top= div_n;
-       wnum.max= snum->max+1; /* a bit of a lie */
+       wnum.dmax= snum->dmax+1; /* a bit of a lie */
 
        /* Get the top 2 words of sdiv */
        /* i=sdiv->top; */