Просмотр исходного кода

endif was a few lines off of where it should be

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1256 f882894a-f735-0410-b71e-b25c423dba1c
M. Sean Finney 20 лет назад
Родитель
Сommit
5dd7b5dff4
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      plugins/check_http.c

+ 2 - 3
plugins/check_http.c

@@ -801,16 +801,15 @@ check_http (void)
 		if (connect_SSL () != OK) {
 			die (STATE_CRITICAL, _("Unable to open TCP socket\n"));
 		}
-#ifdef USE_OPENSSL
+#  ifdef USE_OPENSSL
 		if ((server_cert = SSL_get_peer_certificate (ssl)) != NULL) {
 			X509_free (server_cert);
 		}
-#endif
 		else {
 			printf (_("CRITICAL - Cannot retrieve server certificate.\n"));
 			return STATE_CRITICAL;
 		}
-
+#  endif /* USE_OPENSSL */
 	}
 	else {
 #endif