summaryrefslogtreecommitdiffstats
path: root/security/ssh/files/patch-ay
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2001-02-09 22:56:39 +0000
committerkris <kris@FreeBSD.org>2001-02-09 22:56:39 +0000
commit39d23b055b6b7d9b0630295d51fd6a3d32542a3b (patch)
treeb1e564018e94e30846739c22c5e4005be8041328 /security/ssh/files/patch-ay
parent275af1f2cd7486619848ad2130708d7178da8853 (diff)
downloadFreeBSD-ports-39d23b055b6b7d9b0630295d51fd6a3d32542a3b.zip
FreeBSD-ports-39d23b055b6b7d9b0630295d51fd6a3d32542a3b.tar.gz
Commit fixes for the two recent security problems found by BINDVIEW
and Core-SDI, and bump PORTREVISION.
Diffstat (limited to 'security/ssh/files/patch-ay')
-rw-r--r--security/ssh/files/patch-ay20
1 files changed, 20 insertions, 0 deletions
diff --git a/security/ssh/files/patch-ay b/security/ssh/files/patch-ay
new file mode 100644
index 0000000..51e949e
--- /dev/null
+++ b/security/ssh/files/patch-ay
@@ -0,0 +1,20 @@
+--- rsaglue.c 1999/12/10 23:27:25 1.8
++++ rsaglue.c 2001/02/03 09:42:05
+@@ -264,7 +268,15 @@
+ mpz_clear(&aux);
+
+ if (value[0] != 0 || value[1] != 2)
+- fatal("Bad result from rsa_private_decrypt");
++ {
++ static time_t last_kill_time = 0;
++ if (time(NULL) - last_kill_time > 60 && getppid() != 1)
++ {
++ last_kill_time = time(NULL);
++ kill(SIGALRM, getppid());
++ }
++ fatal("Bad result from rsa_private_decrypt");
++ }
+
+ for (i = 2; i < len && value[i]; i++)
+ ;
+
OpenPOWER on IntegriCloud