Fix compile issues.

This commit is contained in:
XMRig 2019-03-16 13:10:04 +07:00
parent 0d86e53a32
commit 1b9fbf1132
3 changed files with 6 additions and 6 deletions

View file

@ -261,7 +261,7 @@ int64_t xmrig::Client::submit(const JobResult &result)
void xmrig::Client::onResolved(const Dns &dns, int status)
{
assert(client->m_listener != nullptr);
assert(m_listener != nullptr);
if (!m_listener) {
return reconnect();
}
@ -846,7 +846,7 @@ void xmrig::Client::read(ssize_t nread)
return;
}
assert(client->m_listener != nullptr);
assert(m_listener != nullptr);
if (!m_listener) {
return reconnect();
}

View file

@ -164,7 +164,7 @@ void xmrig::Pools::print() const
Log::i()->text(GREEN_BOLD(" * ") WHITE_BOLD("POOL #%-7zu") "\x1B[1;%dm%s\x1B[0m variant " WHITE_BOLD("%s"),
i,
color,
pool.url(),
pool.url().data(),
pool.algorithm().variantName()
);
}
@ -172,7 +172,7 @@ void xmrig::Pools::print() const
Log::i()->text(" * POOL #%-7zu%s%s variant=%s %s",
i,
pool.isEnabled() ? "" : "-",
pool.url(),
pool.url().data(),
pool.algorithm().variantName(),
pool.isTLS() ? "TLS" : ""
);

View file

@ -150,13 +150,13 @@ bool xmrig::Client::Tls::send()
bool xmrig::Client::Tls::verify(X509 *cert)
{
if (cert == nullptr) {
LOG_ERR("[%s] Failed to get server certificate", m_client->m_pool.url());
LOG_ERR("[%s] Failed to get server certificate", m_client->url());
return false;
}
if (!verifyFingerprint(cert)) {
LOG_ERR("[%s] Failed to verify server certificate fingerprint", m_client->m_pool.url());
LOG_ERR("[%s] Failed to verify server certificate fingerprint", m_client->url());
const char *fingerprint = m_client->m_pool.fingerprint();
if (strlen(m_fingerprint) == 64 && fingerprint != nullptr) {