summaryrefslogtreecommitdiffstats
path: root/net-mgmt/nagios-plugins/files/patch-plugins_check__http.c
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/nagios-plugins/files/patch-plugins_check__http.c')
-rw-r--r--net-mgmt/nagios-plugins/files/patch-plugins_check__http.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/net-mgmt/nagios-plugins/files/patch-plugins_check__http.c b/net-mgmt/nagios-plugins/files/patch-plugins_check__http.c
new file mode 100644
index 0000000..cff5d3e
--- /dev/null
+++ b/net-mgmt/nagios-plugins/files/patch-plugins_check__http.c
@@ -0,0 +1,17 @@
+--- plugins/check_http.c.orig 2017-04-19 16:03:12 UTC
++++ plugins/check_http.c
+@@ -1026,11 +1026,9 @@ check_http (void)
+ elapsed_time_ssl = (double)microsec_ssl / 1.0e6;
+ if (check_cert == TRUE) {
+ result = np_net_ssl_check_cert(days_till_exp_warn, days_till_exp_crit);
+- if (result != STATE_OK) {
+- np_net_ssl_cleanup();
+- if (sd) close(sd);
+- return result;
+- }
++ np_net_ssl_cleanup();
++ if (sd) close(sd);
++ return result;
+ }
+ }
+ #endif /* HAVE_SSL */
OpenPOWER on IntegriCloud