--- /dev/null
+ o Minor bugfixes:
+ - Allow manual 'authenticate' commands to the controller interface
+ from nc as well as telnet. We were rejecting them because they
+ didn't come with the expected whitespace at the end of the command.
+ Bugfix on 0.1.1.1-alpha; fixes bug 2893.
int bad_cookie=0, bad_password=0;
smartlist_t *sl = NULL;
- if (TOR_ISXDIGIT(body[0])) {
+ if (!len || TOR_ISSPACE(body[0])) {
+ password = tor_strdup("");
+ password_len = 0;
+ } else if (TOR_ISXDIGIT(body[0])) {
cp = body;
while (TOR_ISXDIGIT(*cp))
++cp;
tor_free(password);
return 0;
}
- } else if (TOR_ISSPACE(body[0])) {
- password = tor_strdup("");
- password_len = 0;
} else {
if (!decode_escaped_string(body, len, &password, &password_len)) {
connection_write_str_to_buf("551 Invalid quoted string. You need "