mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
parent
b3a80e16b2
commit
a8587f5697
@ -67,6 +67,10 @@ void RedisWriter::ConnectionThreadProc(void)
|
|||||||
if (!password.IsEmpty()) {
|
if (!password.IsEmpty()) {
|
||||||
redisReply *reply = reinterpret_cast<redisReply *>(redisCommand(m_Context, "AUTH %s", password.CStr()));
|
redisReply *reply = reinterpret_cast<redisReply *>(redisCommand(m_Context, "AUTH %s", password.CStr()));
|
||||||
|
|
||||||
|
//TODO: Verify if we can continue here.
|
||||||
|
if (!reply)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (reply->type == REDIS_REPLY_STATUS || reply->type == REDIS_REPLY_ERROR) {
|
if (reply->type == REDIS_REPLY_STATUS || reply->type == REDIS_REPLY_ERROR) {
|
||||||
Log(LogInformation, "RedisWriter")
|
Log(LogInformation, "RedisWriter")
|
||||||
<< "AUTH: " << reply->str;
|
<< "AUTH: " << reply->str;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user