summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authoritojun <itojun>2000-11-06 08:52:08 +0000
committeritojun <itojun>2000-11-06 08:52:08 +0000
commit226e11fe6585bfc0b77acea91ae82029bd6aef00 (patch)
tree8874df73e1225860abe6b113721ce2154059c1cb /security
parentee87eb28e5b7af4bbd3599dcc52aa05e906ea6e8 (diff)
downloadpkgsrc-226e11fe6585bfc0b77acea91ae82029bd6aef00.tar.gz
do not return negative value from internal random() function.
from shigeru@iij.ad.jp. sync with KAME.
Diffstat (limited to 'security')
-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;
+ }
+