Magellan Linux

Contents of /trunk/nssl/patches/nssl-005-exit-0-if-remote-end-closed-the-connection.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2760 - (show annotations) (download)
Fri Feb 12 10:40:39 2016 UTC (8 years, 2 months ago) by niro
File size: 1123 byte(s)
-do not exit 1 if the remote site closed the connection, its intentionally with mcored/sslsvd
1 --- nssl/nssl.c.orig 2016-02-12 11:43:42.846317956 +0100
2 +++ nssl/nssl.c 2016-02-12 11:44:57.012536251 +0100
3 @@ -158,7 +158,7 @@
4 ssl_close_all (cnx.sock, cnx.ssl_sock, cnx.ssl_ctx);
5 close (sock);
6 }
7 - exit (1);
8 + exit (0);
9 }
10
11 if (!f_ssl)
12 @@ -182,7 +182,7 @@
13 multiplex_loop (STDIN_FILENO, STDOUT_FILENO, cnx.sock);
14 if (!f_autist) fprintf (stderr, "remote end closed connection\n");
15 }
16 - exit (1);
17 + exit (0);
18 }
19 else
20 {
21 @@ -203,7 +203,7 @@
22 multiplex_loop (STDIN_FILENO, STDOUT_FILENO, sock);
23 if (!f_autist) fprintf (stderr, "remote end closed connection\n");
24 }
25 - exit (1);
26 + exit (0);
27 }
28 }
29
30 @@ -227,7 +227,7 @@
31 ssl_multiplex_loop (cnx.ssl_sock, STDIN_FILENO, STDOUT_FILENO, cnx.sock);
32 if (!f_autist) fprintf (stderr, "remote end closed connection\n");
33 }
34 - exit (1);
35 + exit (0);
36 }
37 else
38 {
39 @@ -249,7 +249,7 @@
40 ssl_multiplex_loop (cnx.ssl_sock, STDIN_FILENO, STDOUT_FILENO, sock);
41 if (!f_autist) fprintf (stderr, "remote end closed connection\n");
42 }
43 - exit (1);
44 + exit (0);
45 }
46
47 return 0;