diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2018-02-01 10:29:15 -0500 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2018-02-01 11:31:27 -0500 |
commit | 96dbd381cf0ded169406bab3b1ba911a13d563c5 (patch) | |
tree | 03d9a1dcbe0a5fcef8f18ce5f859f3e57395550a /src/net.cpp | |
parent | 895fbd768f0c89cea3f78acac58b233d4e3a145e (diff) |
net: initialize socket to avoid closing random fd's
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp index 8111390749..f407add091 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -410,7 +410,7 @@ CNode* CConnman::ConnectNode(CAddress addrConnect, const char *pszDest, bool fCo // Connect bool connected = false; - SOCKET hSocket; + SOCKET hSocket = INVALID_SOCKET; proxyType proxy; if (addrConnect.IsValid()) { bool proxyConnectionFailed = false; |