Commit 9b5948d6 authored by Frank Denis's avatar Frank Denis

Do not ignore ReadPrefixed() errors

parent 887f6ac2
......@@ -297,6 +297,9 @@ func (proxy *Proxy) exchangeWithTCPServer(serverInfo *ServerInfo, sharedKey *[32
encryptedResponse, err := ReadPrefixed(&pc)
if err != nil {
return nil, err
return proxy.Decrypt(serverInfo, sharedKey, encryptedResponse, clientNonce)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment