ports/net-mgmt/nagios-plugins/files/patch-plugins_check__http.c
Mathieu Arnold 51f7faef0d Restore check_http's -C option to its former glory.
Submitted by:	feld
Sponsored by:	Absolight
2017-08-30 14:32:09 +00:00

17 lines
491 B
C

--- 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 */