Fail on failure :)

This commit is contained in:
Frank Denis 2019-10-20 23:07:36 +02:00
parent 1cb9a360de
commit 92e632daf1
1 changed files with 1 additions and 1 deletions

View File

@ -415,7 +415,7 @@ func (proxy *Proxy) processIncomingQuery(serverInfo *ServerInfo, clientProto str
sharedKey, encryptedQuery, clientNonce, err := proxy.Encrypt(serverInfo, query, serverProto)
if err != nil {
pluginsState.returnCode = PluginsReturnCodeParseError
pluginsState.ApplyLoggingPlugins(&proxy.pluginsGlobals)
return
}
response, err = proxy.exchangeWithTCPServer(serverInfo, sharedKey, encryptedQuery, clientNonce)
}