[Nagiosplug-checkins] nagiosplug/plugins check_http.c,1.86,1.87

M. Sean Finney seanius at users.sourceforge.net
Sat Mar 18 06:48:01 CET 2006


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2042

Modified Files:
	check_http.c 
Log Message:
return-logic related fix for cert checking, thanks to emmet hogan.


Index: check_http.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_http.c,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -d -r1.86 -r1.87
--- check_http.c	14 Nov 2005 01:18:57 -0000	1.86
+++ check_http.c	18 Mar 2006 14:47:51 -0000	1.87
@@ -755,11 +755,9 @@
     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 */





More information about the Commits mailing list