From 7f82c2504db96d58fa5b3d74cfefd13eec023a42 Mon Sep 17 00:00:00 2001 From: Eric Lagergren Date: Wed, 30 Oct 2019 18:40:42 -0700 Subject: [PATCH] check error that was being erroneously shadowed --- dnscrypt-proxy/proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnscrypt-proxy/proxy.go b/dnscrypt-proxy/proxy.go index f741679b..36613e9c 100644 --- a/dnscrypt-proxy/proxy.go +++ b/dnscrypt-proxy/proxy.go @@ -416,7 +416,7 @@ func (proxy *Proxy) processIncomingQuery(serverInfo *ServerInfo, clientProto str response, err = proxy.exchangeWithUDPServer(serverInfo, sharedKey, encryptedQuery, clientNonce) if err == nil && len(response) >= MinDNSPacketSize && response[2]&0x02 == 0x02 { serverProto = "tcp" - sharedKey, encryptedQuery, clientNonce, err := proxy.Encrypt(serverInfo, query, serverProto) + sharedKey, encryptedQuery, clientNonce, err = proxy.Encrypt(serverInfo, query, serverProto) if err != nil { pluginsState.returnCode = PluginsReturnCodeParseError return