summaryrefslogtreecommitdiffstats
path: root/plugins/check_http.c
diff options
context:
space:
mode:
authorM. Sean Finney <seanius@users.sourceforge.net>2006-03-18 14:47:51 +0000
committerM. Sean Finney <seanius@users.sourceforge.net>2006-03-18 14:47:51 +0000
commitcd8b45f633bfda6a414b4120672efa96123119f6 (patch)
tree212c8c567ca59df89cfb8e6d9a4015fa1aeccde5 /plugins/check_http.c
parent0d838e4312d6dad6d253c1c4b96bf28a03ed8988 (diff)
downloadmonitoring-plugins-cd8b45f633bfda6a414b4120672efa96123119f6.tar.gz
return-logic related fix for cert checking, thanks to emmet hogan.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1329 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index b86b2646..54e5ff29 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -755,11 +755,9 @@ check_http (void)
755 np_net_ssl_init(sd); 755 np_net_ssl_init(sd);
756 if (check_cert == TRUE) { 756 if (check_cert == TRUE) {
757 result = np_net_ssl_check_cert(days_till_exp); 757 result = np_net_ssl_check_cert(days_till_exp);
758 if(result != STATE_OK){ 758 np_net_ssl_cleanup();
759 np_net_ssl_cleanup(); 759 if(sd) close(sd);
760 if(sd) close(sd); 760 return result;
761 return result;
762 }
763 } 761 }
764 } 762 }
765#endif /* HAVE_SSL */ 763#endif /* HAVE_SSL */