projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix spurious bntest failures.
[openssl.git]
/
test
/
bntest.c
diff --git
a/test/bntest.c
b/test/bntest.c
index cf4d2ab3a65728a1e81566c571b5f8985a0636bf..430d2a02b81cbf7fae917f361d6eb8456eddf462 100644
(file)
--- a/
test/bntest.c
+++ b/
test/bntest.c
@@
-526,9
+526,9
@@
int test_div_word(BIO *bp)
do {
BN_bntest_rand(a, 512, -1, 0);
BN_bntest_rand(b, BN_BITS2, -1, 0);
- s = b->d[0];
- } while (!s);
+ } while (BN_is_zero(b));
+ s = b->d[0];
BN_copy(b, a);
r = BN_div_word(b, s);