diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-10-02 16:52:57 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-10-02 16:52:57 +0000 |
commit | 96eb0493787c08d042958f2a1d9335a9ec7fa694 (patch) | |
tree | 0f12362d6cabdb3165fe356885e56d54e2d62673 /sbin/ipsec | |
parent | 3377b22fe5c44cdb4cfcbae9c5ad171c66e10e77 (diff) |
Typos in arithmetic formulae
Diffstat (limited to 'sbin/ipsec')
-rw-r--r-- | sbin/ipsec/photurisd/exchange.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ipsec/photurisd/exchange.c b/sbin/ipsec/photurisd/exchange.c index 9340c5eee5c..6fb004efcbb 100644 --- a/sbin/ipsec/photurisd/exchange.c +++ b/sbin/ipsec/photurisd/exchange.c @@ -33,7 +33,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: exchange.c,v 1.2 1997/07/24 23:47:11 provos Exp $"; +static char rcsid[] = "$Id: exchange.c,v 1.3 1998/10/02 16:52:56 niklas Exp $"; #endif #define _EXCHANGE_C_ @@ -213,11 +213,11 @@ exchange_check_value(mpz_t exchange, mpz_t gen, mpz_t mod) mpz_t test; bits = mpz_sizeinbase(mod, 2); - if (mpz_sizeinbase(mod, 2) < bits/2) + if (mpz_sizeinbase(exchange, 2) < bits/2) return 0; mpz_init(test); - mpz_sub_ui(test, gen, 1); + mpz_sub_ui(test, mod, 1); if (!mpz_cmp(exchange,test)) { mpz_clear(test); return 0; |