remove extra assignment of s from 1.11, fix regression test
authorbcook <bcook@openbsd.org>
Tue, 5 Jul 2016 03:55:34 +0000 (03:55 +0000)
committerbcook <bcook@openbsd.org>
Tue, 5 Jul 2016 03:55:34 +0000 (03:55 +0000)
regress/lib/libcrypto/bn/general/bntest.c

index 1d54177..e1ef144 100644 (file)
@@ -514,7 +514,7 @@ int
 test_div_word(BIO *bp)
 {
        BIGNUM   a, b;
-       BN_ULONG r, rmod, s;
+       BN_ULONG r, rmod, s = 0;
        int i;
        int rc = 1;
 
@@ -536,7 +536,6 @@ test_div_word(BIO *bp)
                        break;
                }
 
-               s = b.d[0];
                rmod = BN_mod_word(&b, s);
                r = BN_div_word(&b, s);