summaryrefslogtreecommitdiffstats
path: root/plugins/t
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/t')
0 files changed, 0 insertions, 0 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index b86b264..54e5ff2 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 */