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