Fix build with OpenSSL, EXPERIMENTAL_DANE and DISABLE_EVENT
authorJeremy Harris <jgh146exb@wizmail.org>
Mon, 23 Jan 2017 19:12:37 +0000 (19:12 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Mon, 23 Jan 2017 19:12:37 +0000 (19:12 +0000)
src/src/tls-openssl.c

index 5a7e92a255b9feaf0d6f5eba27de263e58c3edf2..e6b256e1690dede0f00f1553ed89faf61bfd71c1 100644 (file)
@@ -526,8 +526,8 @@ verify_callback_client_dane(int preverify_ok, X509_STORE_CTX * x509ctx)
 {
 X509 * cert = X509_STORE_CTX_get_current_cert(x509ctx);
 uschar dn[256];
-#ifndef DISABLE_EVENT
 int depth = X509_STORE_CTX_get_error_depth(x509ctx);
+#ifndef DISABLE_EVENT
 BOOL dummy_called, optional = FALSE;
 #endif