summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1998-10-02 16:52:56 +0000
committerniklas <niklas@openbsd.org>1998-10-02 16:52:56 +0000
commit4866de1d52a99cc51ccacaf20e559f7d125d6ff5 (patch)
tree70664785cd490ade3dee35d75e18eeabd6fc1af1
parentFix a serious bug in extent_alloc_subregion where the subregion start (diff)
downloadwireguard-openbsd-4866de1d52a99cc51ccacaf20e559f7d125d6ff5.tar.xz
wireguard-openbsd-4866de1d52a99cc51ccacaf20e559f7d125d6ff5.zip
Typos in arithmetic formulae
-rw-r--r--sbin/ipsec/photurisd/exchange.c6
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;