summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-06-20 13:37:45 -0400
committerNick Mathewson <nickm@torproject.org>2016-06-20 13:37:45 -0400
commit2f75b34dcede23dad8835a941539935e82cf7988 (patch)
treeca20e17509976405a38ca49ce4e9dec411701dc8
parent5fbd195918b4f5ad73130547c2ca58fd69baded0 (diff)
downloadtor-2f75b34dcede23dad8835a941539935e82cf7988.tar.gz
tor-2f75b34dcede23dad8835a941539935e82cf7988.zip
Patch from dgoulet: fix a base16 problem that manifested w stem
-rw-r--r--src/or/control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c
index f956307c0e..6e5dcf62e6 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -1264,7 +1264,7 @@ handle_control_authenticate(control_connection_t *conn, uint32_t len,
password_len = i/2;
password = tor_malloc(password_len + 1);
if (base16_decode(password, password_len+1, body, i)
- != (int) (password_len+1)) {
+ != (int) password_len) {
connection_write_str_to_buf(
"551 Invalid hexadecimal encoding. Maybe you tried a plain text "
"password? If so, the standard requires that you put it in "