Pārlūkot izejas kodu

Changes from review.

Signed-off-by: James Noss <james.noss@lexisnexis.com>
James Noss 10 gadi atpakaļ
vecāks
revīzija
f560cded0e
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      plugins/redis/redis.cpp

+ 1 - 1
plugins/redis/redis.cpp

@@ -402,7 +402,7 @@ void Connection::assertOnCommandError(const redisReply * reply, const char * cmd
 }
 void Connection::assertAuthorization(const redisReply * reply)
 {
-    if (reply && reply->str && ( strncmp(reply->str, "NOAUTH", 6) == 0 || strncmp(reply->str, "ERR operation not permitted", 30) == 0 ))
+    if (reply && reply->str && ( strncmp(reply->str, "NOAUTH", 6) == 0 || strncmp(reply->str, "ERR operation not permitted", 27) == 0 ))
     {
         VStringBuffer msg("Redis Plugin: server authentication failed - %s", reply->str);
         rtlFail(0, msg.str());