1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-27 21:29:02 +00:00
freebsd-ports/security/ssh/files/patch-ay
Kris Kennaway ccd8c2a771 Sigh, the patch released by ssh.com was wrong (kill() had the arguments
in the wrong order). Fix this, and bump PORTREVISION again. The window
was only a few minutes, but this won't disrupt things, and someone may
have updated in that window given the prominence of the problem.

Obtained from:	Matt Power <mhpower@BOS.BINDVIEW.COM> via Bugtraq
2001-02-09 23:06:50 +00:00

21 lines
528 B
Plaintext

--- 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(getppid(), SIGALRM);
+ }
+ fatal("Bad result from rsa_private_decrypt");
+ }
for (i = 2; i < len && value[i]; i++)
;