diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-07-07 07:19:53 -0700 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-07-07 07:19:53 -0700 |
commit | 0ba5bacd0c47c947a9050d1f393bee437e49cecc (patch) | |
tree | b234bf2b49cbbfaa43ac5f608295fe48f1a47484 /src | |
parent | 249856d557d05aaf293aba80eab95c3dd312dd26 (diff) | |
parent | b19811d5f4140281f99f4eea5e69d9d670f4d549 (diff) |
Merge pull request #1565 from jrmithdobbs/socks5-fix
Fix OBO in socks5 auth proposal.
Diffstat (limited to 'src')
-rw-r--r-- | src/netbase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp index aa767cd3eb..0a54fdf46c 100644 --- a/src/netbase.cpp +++ b/src/netbase.cpp @@ -224,7 +224,7 @@ bool static Socks5(string strDest, int port, SOCKET& hSocket) } char pszSocks5Init[] = "\5\1\0"; char *pszSocks5 = pszSocks5Init; - ssize_t nSize = sizeof(pszSocks5Init); + ssize_t nSize = sizeof(pszSocks5Init) - 1; ssize_t ret = send(hSocket, pszSocks5, nSize, MSG_NOSIGNAL); if (ret != nSize) |