diff options
author | bcook <> | 2016-07-05 03:55:34 +0000 |
---|---|---|
committer | bcook <> | 2016-07-05 03:55:34 +0000 |
commit | 30afec6fc9cf9685fdb410bf0fc90f10a1154872 (patch) | |
tree | 2405eb540c1c709f5c34b340b39afb9d791c4df2 | |
parent | 3e976c2404c967e564a1332564cece526e6e84d5 (diff) | |
download | openbsd-30afec6fc9cf9685fdb410bf0fc90f10a1154872.tar.gz openbsd-30afec6fc9cf9685fdb410bf0fc90f10a1154872.tar.bz2 openbsd-30afec6fc9cf9685fdb410bf0fc90f10a1154872.zip |
remove extra assignment of s from 1.11, fix regression test
-rw-r--r-- | src/regress/lib/libcrypto/bn/general/bntest.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/bn/general/bntest.c b/src/regress/lib/libcrypto/bn/general/bntest.c index 1d541778e3..e1ef1445c6 100644 --- a/src/regress/lib/libcrypto/bn/general/bntest.c +++ b/src/regress/lib/libcrypto/bn/general/bntest.c | |||
@@ -514,7 +514,7 @@ int | |||
514 | test_div_word(BIO *bp) | 514 | test_div_word(BIO *bp) |
515 | { | 515 | { |
516 | BIGNUM a, b; | 516 | BIGNUM a, b; |
517 | BN_ULONG r, rmod, s; | 517 | BN_ULONG r, rmod, s = 0; |
518 | int i; | 518 | int i; |
519 | int rc = 1; | 519 | int rc = 1; |
520 | 520 | ||
@@ -536,7 +536,6 @@ test_div_word(BIO *bp) | |||
536 | break; | 536 | break; |
537 | } | 537 | } |
538 | 538 | ||
539 | s = b.d[0]; | ||
540 | rmod = BN_mod_word(&b, s); | 539 | rmod = BN_mod_word(&b, s); |
541 | r = BN_div_word(&b, s); | 540 | r = BN_div_word(&b, s); |
542 | 541 | ||