1 --- tcp_wrappers_7.6.orig/rfc931.c 1995-01-02 16:11:34.000000000 +0100
2 +++ tcp_wrappers_7.6/rfc931.c 2009-06-05 18:45:03.000000000 +0200
3 @@ -33,7 +33,7 @@ static char sccsid[] = "@(#) rfc931.c 1.
5 int rfc931_timeout = RFC931_TIMEOUT;/* Global so it can be changed */
7 -static jmp_buf timebuf;
8 +static sigjmp_buf timebuf;
10 /* fsocket - open stdio stream on top of socket */
12 @@ -62,7 +62,7 @@ int protocol;
13 static void timeout(sig)
16 - longjmp(timebuf, sig);
17 + siglongjmp(timebuf, sig);
20 /* rfc931 - return remote user name, given socket structures */
21 @@ -99,7 +99,7 @@ char *dest;
22 * Set up a timer so we won't get stuck while waiting for the server.
25 - if (setjmp(timebuf) == 0) {
26 + if (sigsetjmp(timebuf,1) == 0) {
27 signal(SIGALRM, timeout);
28 alarm(rfc931_timeout);