diff options
Diffstat (limited to 'web/attachments/49900-check_http_patch.txt')
-rw-r--r-- | web/attachments/49900-check_http_patch.txt | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/web/attachments/49900-check_http_patch.txt b/web/attachments/49900-check_http_patch.txt new file mode 100644 index 0000000..84b9205 --- /dev/null +++ b/web/attachments/49900-check_http_patch.txt | |||
@@ -0,0 +1,47 @@ | |||
1 | Index: check_http.c | ||
2 | =================================================================== | ||
3 | RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_http.c,v | ||
4 | retrieving revision 1.32 | ||
5 | diff -c -r1.32 check_http.c | ||
6 | *** check_http.c 23 Apr 2003 04:58:38 -0000 1.32 | ||
7 | --- check_http.c 8 May 2003 15:55:08 -0000 | ||
8 | *************** | ||
9 | *** 630,645 **** | ||
10 | pagesize += i; | ||
11 | } | ||
12 | |||
13 | ! if (i < 0) { | ||
14 | #ifdef HAVE_SSL | ||
15 | ! sslerr=SSL_get_error(ssl, i); | ||
16 | ! if ( sslerr == SSL_ERROR_SSL ) { | ||
17 | ! terminate (STATE_WARNING, "Client Certificate Required\n"); | ||
18 | ! } else { | ||
19 | terminate (STATE_CRITICAL, "Error in recv()"); | ||
20 | } | ||
21 | - #else | ||
22 | - terminate (STATE_CRITICAL, "Error in recv()"); | ||
23 | #endif | ||
24 | } | ||
25 | |||
26 | --- 630,650 ---- | ||
27 | pagesize += i; | ||
28 | } | ||
29 | |||
30 | ! if (i < 0 && errno != ECONNRESET) { | ||
31 | #ifdef HAVE_SSL | ||
32 | ! if (use_ssl) { | ||
33 | ! sslerr=SSL_get_error(ssl, i); | ||
34 | ! if ( sslerr == SSL_ERROR_SSL ) { | ||
35 | ! terminate (STATE_WARNING, "Client Certificate Required\n"); | ||
36 | ! } else { | ||
37 | ! terminate (STATE_CRITICAL, "Error in recv()"); | ||
38 | ! } | ||
39 | ! } | ||
40 | ! else { | ||
41 | ! #endif | ||
42 | terminate (STATE_CRITICAL, "Error in recv()"); | ||
43 | + #ifdef HAVE_SSL | ||
44 | } | ||
45 | #endif | ||
46 | } | ||
47 | |||