diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2023-01-06 20:48:22 +0000 | 
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2023-01-06 20:48:22 +0000 | 
| commit | 6f4e10db3298f6d65e1e646fe52aaafc3682b788 (patch) | |
| tree | 0a8de0ec1173c00886bcde1c3b18e0963e5f2b83 /lib/hcrypto/dh.c | |
| parent | d5d1e8b157da7410fe13e6302f8e1bee81320bb5 (diff) | |
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++; | 
