summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoritojun <itojun@pkgsrc.org>2000-11-06 08:52:08 +0000
committeritojun <itojun@pkgsrc.org>2000-11-06 08:52:08 +0000
commit7d609f5d02d6eb4878b7d379e51b49865fb5df88 (patch)
tree8874df73e1225860abe6b113721ce2154059c1cb
parentc76435d6a47cc54727e8c43092758fd791ba8509 (diff)
downloadpkgsrc-7d609f5d02d6eb4878b7d379e51b49865fb5df88.tar.gz
do not return negative value from internal random() function.
from shigeru@iij.ad.jp. sync with KAME.
-rw-r--r--security/racoon/files/patch-sum3
-rw-r--r--security/racoon/patches/patch-ae18
2 files changed, 20 insertions, 1 deletions
diff --git a/security/racoon/files/patch-sum b/security/racoon/files/patch-sum
index c7f5ac32b41..b3d929dfba8 100644
--- a/security/racoon/files/patch-sum
+++ b/security/racoon/files/patch-sum
@@ -1,6 +1,7 @@
-$NetBSD: patch-sum,v 1.8 2000/10/04 00:31:48 itojun Exp $
+$NetBSD: patch-sum,v 1.9 2000/11/06 08:52:08 itojun Exp $
MD5 (patch-aa) = d22da496fc39e0bc2c926c6ffbb758e1
MD5 (patch-ab) = 1a2944fbce4cee174eade2cc0726c0ef
MD5 (patch-ac) = 40a2125ca09427e050e4d6000c42b2c6
MD5 (patch-ad) = b99c6e6d3745d87bf62ac622c4ee6756
+MD5 (patch-ae) = 702d387e50d59e178b524bb1113f25da
diff --git a/security/racoon/patches/patch-ae b/security/racoon/patches/patch-ae
new file mode 100644
index 00000000000..69bbbc55b8a
--- /dev/null
+++ b/security/racoon/patches/patch-ae
@@ -0,0 +1,18 @@
+$NetBSD: patch-ae,v 1.5 2000/11/06 08:52:09 itojun Exp $
+
+Index: random.c
+===================================================================
+RCS file: /cvsroot/kame/kame/kame/kame/racoon/random.c,v
+retrieving revision 1.4
+retrieving revision 1.5
+diff -u -r1.4 -r1.5
+--- random.c 2000/10/06 13:11:39 1.4
++++ random.c 2000/11/06 08:43:17 1.5
+@@ -60,6 +60,7 @@
+ long v;
+
+ read(fd, &v, sizeof(v));
++ v &= ((~0UL) >> 1);
+ return v;
+ }
+