diff options
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r-- | plugins/check_http.c | 8 |
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) np_net_ssl_init(sd); if (check_cert == TRUE) { result = np_net_ssl_check_cert(days_till_exp); - 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 */ |