summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3bae38a)
raw | patch | inline | side by side (parent: 3bae38a)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Fri, 9 May 2003 03:22:55 +0000 (03:22 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Fri, 9 May 2003 03:22:55 +0000 (03:22 +0000) |
immediately
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@503 f882894a-f735-0410-b71e-b25c423dba1c
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@503 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_http.c | patch | blob | history |
diff --git a/plugins/check_http.c b/plugins/check_http.c
index e22560e2213a549fe30e297fa3489445b33ae76a..91cc48cda6470a390f8995ffdefdc25b4c9304fb 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
pagesize += i;
}
- if (i < 0) {
+ if (i < 0 && errno != ECONNRESET) {
#ifdef HAVE_SSL
- sslerr=SSL_get_error(ssl, i);
- if ( sslerr == SSL_ERROR_SSL ) {
- terminate (STATE_WARNING, "Client Certificate Required\n");
- } else {
+ 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
}
-#else
- terminate (STATE_CRITICAL, "Error in recv()");
#endif
}