openssl: update to 3.4.0
[openadk.git] / package / tcp_wrappers / patches / patch-rfc931_c
blob56e4ad7c3937ddc66a0442dbc1edd5e72cdf42ed
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.
4  
5  int     rfc931_timeout = RFC931_TIMEOUT;/* Global so it can be changed */
6  
7 -static jmp_buf timebuf;
8 +static sigjmp_buf timebuf;
9  
10  /* fsocket - open stdio stream on top of socket */
12 @@ -62,7 +62,7 @@ int     protocol;
13  static void timeout(sig)
14  int     sig;
15  {
16 -    longjmp(timebuf, sig);
17 +    siglongjmp(timebuf, sig);
18  }
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.
23          */
25 -       if (setjmp(timebuf) == 0) {
26 +       if (sigsetjmp(timebuf,1) == 0) {
27             signal(SIGALRM, timeout);
28             alarm(rfc931_timeout);