Browse Source

ZOOKEEPER-1048. addauth command does not work in cli_mt/cli_st (allengao via michim)


git-svn-id: https://svn.apache.org/repos/asf/zookeeper/trunk@1334548 13f79535-47bb-0310-9956-ffa450edef68
Michi Mutsuzaki 13 years ago
parent
commit
a7b48e56f5
2 changed files with 4 additions and 1 deletions
  1. 3 0
      CHANGES.txt
  2. 1 1
      src/c/src/cli.c

+ 3 - 0
CHANGES.txt

@@ -175,6 +175,9 @@ BUGFIXES:
   ZOOKEEPER-1339. C client doesn't build with --enable-debug
   (Eric Liang via michim)
 
+  ZOOKEEPER-1048. addauth command does not work in cli_mt/cli_st
+  (allengao via michim)
+
 IMPROVEMENTS:
 
   ZOOKEEPER-1170. Fix compiler (eclipse) warnings: unused imports,

+ 1 - 1
src/c/src/cli.c

@@ -469,7 +469,7 @@ void processline(char *line) {
         *ptr = '\0';
         ptr++;
       }
-      zoo_add_auth(zh, line, ptr, ptr ? strlen(ptr)-1 : 0, NULL, NULL);
+      zoo_add_auth(zh, line, ptr, ptr ? strlen(ptr) : 0, NULL, NULL);
     }
 }