From cd8b45f633bfda6a414b4120672efa96123119f6 Mon Sep 17 00:00:00 2001 From: "M. Sean Finney" Date: Sat, 18 Mar 2006 14:47:51 +0000 Subject: 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 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) 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 */ -- cgit v0.10-9-g596f