diff --git a/src/net/Client.cpp b/src/net/Client.cpp index 4a9f379d1..6e4e0c9e1 100644 --- a/src/net/Client.cpp +++ b/src/net/Client.cpp @@ -52,12 +52,13 @@ Client::Client(int id, const char *agent, IClientListener *listener) : m_socket(nullptr) { memset(m_ip, 0, sizeof(m_ip)); + memset(&m_hints, 0, sizeof(m_hints)); + m_resolver.data = m_responseTimer.data = m_retriesTimer.data = m_keepAliveTimer.data = this; m_hints.ai_family = PF_INET; m_hints.ai_socktype = SOCK_STREAM; m_hints.ai_protocol = IPPROTO_TCP; - m_hints.ai_flags = 0; m_recvBuf.base = static_cast(malloc(kRecvBufSize)); m_recvBuf.len = kRecvBufSize; diff --git a/src/version.h b/src/version.h index 91be4b1fc..765f313e8 100644 --- a/src/version.h +++ b/src/version.h @@ -27,14 +27,14 @@ #define APP_ID "xmrig" #define APP_NAME "XMRig" #define APP_DESC "Monero (XMR) CPU miner" -#define APP_VERSION "2.0.0" +#define APP_VERSION "2.0.1" #define APP_DOMAIN "xmrig.com" #define APP_SITE "www.xmrig.com" #define APP_COPYRIGHT "Copyright (C) 2016-2017 xmrig.com" #define APP_VER_MAJOR 2 #define APP_VER_MINOR 0 -#define APP_VER_BUILD 0 +#define APP_VER_BUILD 1 #define APP_VER_REV 0 #ifdef _MSC_VER