summaryrefslogtreecommitdiff
path: root/security/sfs/files
diff options
context:
space:
mode:
authorMatthew N. Dodd <mdodd@FreeBSD.org>2003-10-15 22:04:36 +0000
committerMatthew N. Dodd <mdodd@FreeBSD.org>2003-10-15 22:04:36 +0000
commit9702902e84d2a27ab9a157309f5276e8ff855a30 (patch)
tree5dfd1a19c67d7f5cfc7ab8ac6235a706ced8f231 /security/sfs/files
parentBROKEN on 5.x: does not compile (diff)
Fix compile problems on -CURRENT.
PR: ports/57586 Submitted by: Edwin Groothuis <edwin@mavetju.org> Approved by: maintainer
Notes
Notes: svn path=/head/; revision=91365
Diffstat (limited to 'security/sfs/files')
-rw-r--r--security/sfs/files/patch-random_prime.C11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/sfs/files/patch-random_prime.C b/security/sfs/files/patch-random_prime.C
new file mode 100644
index 000000000000..0797cc4f0eeb
--- /dev/null
+++ b/security/sfs/files/patch-random_prime.C
@@ -0,0 +1,11 @@
+--- crypt/random_prime.C.orig Tue Oct 14 23:24:18 2003
++++ crypt/random_prime.C Tue Oct 14 22:59:32 2003
+@@ -336,7 +336,7 @@
+ bigint t1, t2;
+ for (;;) {
+ next_weak ();
+- if (!tmp || (fermat2_test (tmp, &t1, &t2) == 2 && tmp.probab_prime (iter)))
++ if (!tmp || (fermat2_test (tmp, &t1, &t2) && tmp.probab_prime (iter)))
+ return tmp;
+ }
+ }