@@ -390,7 +390,7 @@ bool Socks5(const std::string& strDest, uint16_t port, const ProxyCredentials* a
390390 return error (" Error sending to proxy" );
391391 }
392392 uint8_t pchRet1[2 ];
393- if ((recvr = InterruptibleRecv (pchRet1, 2 , g_socks5_recv_timeout, sock) ) != IntrRecvError::OK) {
393+ if (InterruptibleRecv (pchRet1, 2 , g_socks5_recv_timeout, sock) != IntrRecvError::OK) {
394394 LogPrintf (" Socks5() connect to %s:%d failed: InterruptibleRecv() timeout or other failure\n " , strDest, port);
395395 return false ;
396396 }
@@ -413,7 +413,7 @@ bool Socks5(const std::string& strDest, uint16_t port, const ProxyCredentials* a
413413 }
414414 LogPrint (BCLog::PROXY, " SOCKS5 sending proxy authentication %s:%s\n " , auth->username , auth->password );
415415 uint8_t pchRetA[2 ];
416- if ((recvr = InterruptibleRecv (pchRetA, 2 , g_socks5_recv_timeout, sock) ) != IntrRecvError::OK) {
416+ if (InterruptibleRecv (pchRetA, 2 , g_socks5_recv_timeout, sock) != IntrRecvError::OK) {
417417 return error (" Error reading proxy authentication response" );
418418 }
419419 if (pchRetA[0 ] != 0x01 || pchRetA[1 ] != 0x00 ) {
@@ -479,7 +479,7 @@ bool Socks5(const std::string& strDest, uint16_t port, const ProxyCredentials* a
479479 if (recvr != IntrRecvError::OK) {
480480 return error (" Error reading from proxy" );
481481 }
482- if ((recvr = InterruptibleRecv (pchRet3, 2 , g_socks5_recv_timeout, sock) ) != IntrRecvError::OK) {
482+ if (InterruptibleRecv (pchRet3, 2 , g_socks5_recv_timeout, sock) != IntrRecvError::OK) {
483483 return error (" Error reading from proxy" );
484484 }
485485 LogPrint (BCLog::NET, " SOCKS5 connected %s\n " , strDest);
0 commit comments