Remove unreachable code

Spotted by @komapa
This commit is contained in:
Frank Denis 2020-04-05 20:48:00 +02:00
parent 76f6d02e52
commit f4631b9121
1 changed files with 0 additions and 6 deletions

View File

@ -544,12 +544,6 @@ func (proxy *Proxy) processIncomingQuery(clientProto string, serverProto string,
if response == nil {
response = serverResponse
}
if err != nil {
pluginsState.returnCode = PluginsReturnCodeNetworkError
pluginsState.ApplyLoggingPlugins(&proxy.pluginsGlobals)
serverInfo.noticeFailure(proxy)
return
}
if len(response) >= MinDNSPacketSize {
SetTransactionID(response, tid)
}