diff options
Diffstat (limited to 'lib/hcrypto/dh.c')
| -rw-r--r-- | lib/hcrypto/dh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hcrypto/dh.c b/lib/hcrypto/dh.c index ef717d50c0a6..0447c4f48384 100644 --- a/lib/hcrypto/dh.c +++ b/lib/hcrypto/dh.c @@ -305,7 +305,7 @@ DH_check_pubkey(const DH *dh, const BIGNUM *pub_key, int *codes) unsigned i, n = BN_num_bits(pub_key); unsigned bits = 0; - for (i = 0; i <= n; i++) + for (i = 0; i < n; i++) if (BN_is_bit_set(pub_key, i)) bits++; |
