comparison libtommath/bn_mp_div.c @ 338:1c7a072000e0

BUG: mp_div_2d returns status and it isn't checked. FIX: Check and return status. From Erik Hovland
author Matt Johnston <matt@ucc.asn.au>
date Fri, 07 Jul 2006 06:43:55 +0000
parents eed26cff980b
children 5ff8218bcee9
comparison
equal deleted inserted replaced
337:bfa09e369e0e 338:1c7a072000e0
267 mp_exch (&q, c); 267 mp_exch (&q, c);
268 c->sign = neg; 268 c->sign = neg;
269 } 269 }
270 270
271 if (d != NULL) { 271 if (d != NULL) {
272 mp_div_2d (&x, norm, &x, NULL); 272 if ((res = mp_div_2d (&x, norm, &x, NULL)) != MP_OKAY) {
273 goto LBL_Y;
274 }
273 mp_exch (&x, d); 275 mp_exch (&x, d);
274 } 276 }
275 277
276 res = MP_OKAY; 278 res = MP_OKAY;
277 279