From 79820031902dc64e9c1c952e81e96c01bb943146 Mon Sep 17 00:00:00 2001 From: shawkins Date: Fri, 11 Mar 2016 10:48:20 -0500 Subject: [PATCH] TEIID-4068 correcting the ssl check --- .../main/java/org/teiid/transport/PgBackendProtocol.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/src/main/java/org/teiid/transport/PgBackendProtocol.java b/runtime/src/main/java/org/teiid/transport/PgBackendProtocol.java index 9d5c727262..27f534031e 100644 --- a/runtime/src/main/java/org/teiid/transport/PgBackendProtocol.java +++ b/runtime/src/main/java/org/teiid/transport/PgBackendProtocol.java @@ -581,14 +581,14 @@ public void sendSslResponse() { engine = config.getServerSSLEngine(); } } catch (IOException e) { - LogManager.logError(LogConstants.CTX_ODBC, e, RuntimePlugin.Util.gs(requireSecure?RuntimePlugin.Event.TEIID40122:RuntimePlugin.Event.TEIID40016)); + LogManager.logError(LogConstants.CTX_ODBC, e, RuntimePlugin.Util.gs(secureData()?RuntimePlugin.Event.TEIID40122:RuntimePlugin.Event.TEIID40016)); } catch (GeneralSecurityException e) { - LogManager.logError(LogConstants.CTX_ODBC, e, RuntimePlugin.Util.gs(requireSecure?RuntimePlugin.Event.TEIID40122:RuntimePlugin.Event.TEIID40016)); + LogManager.logError(LogConstants.CTX_ODBC, e, RuntimePlugin.Util.gs(secureData()?RuntimePlugin.Event.TEIID40122:RuntimePlugin.Event.TEIID40016)); } ByteBuf buffer = Unpooled.buffer(1); ChannelPromise promise = this.ctx.newPromise(); if (engine == null) { - if (requireSecure) { + if (secureData()) { sendErrorResponse(RuntimePlugin.Util.gs(RuntimePlugin.Event.TEIID40124)); return; }