@@ -387,7 +387,7 @@ bool Socks5(const std::string& strDest, uint16_t port, const ProxyCredentials* a
387387 return error (" Error sending to proxy" );
388388 }
389389 uint8_t pchRet1[2 ];
390- if ((recvr = InterruptibleRecv (pchRet1, 2 , g_socks5_recv_timeout, sock) ) != IntrRecvError::OK) {
390+ if (InterruptibleRecv (pchRet1, 2 , g_socks5_recv_timeout, sock) != IntrRecvError::OK) {
391391 LogPrintf (" Socks5() connect to %s:%d failed: InterruptibleRecv() timeout or other failure\n " , strDest, port);
392392 return false ;
393393 }
@@ -410,7 +410,7 @@ bool Socks5(const std::string& strDest, uint16_t port, const ProxyCredentials* a
410410 }
411411 LogPrint (BCLog::PROXY, " SOCKS5 sending proxy authentication %s:%s\n " , auth->username , auth->password );
412412 uint8_t pchRetA[2 ];
413- if ((recvr = InterruptibleRecv (pchRetA, 2 , g_socks5_recv_timeout, sock) ) != IntrRecvError::OK) {
413+ if (InterruptibleRecv (pchRetA, 2 , g_socks5_recv_timeout, sock) != IntrRecvError::OK) {
414414 return error (" Error reading proxy authentication response" );
415415 }
416416 if (pchRetA[0 ] != 0x01 || pchRetA[1 ] != 0x00 ) {
@@ -476,7 +476,7 @@ bool Socks5(const std::string& strDest, uint16_t port, const ProxyCredentials* a
476476 if (recvr != IntrRecvError::OK) {
477477 return error (" Error reading from proxy" );
478478 }
479- if ((recvr = InterruptibleRecv (pchRet3, 2 , g_socks5_recv_timeout, sock) ) != IntrRecvError::OK) {
479+ if (InterruptibleRecv (pchRet3, 2 , g_socks5_recv_timeout, sock) != IntrRecvError::OK) {
480480 return error (" Error reading from proxy" );
481481 }
482482 LogPrint (BCLog::NET, " SOCKS5 connected %s\n " , strDest);
0 commit comments