mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
fix a size_t-to-len compile warning
svn:r8618
This commit is contained in:
parent
09a2ec0192
commit
864069f5c7
@ -1079,7 +1079,7 @@ handle_control_authenticate(control_connection_t *conn, uint32_t len,
|
|||||||
if (options->CookieAuthentication) {
|
if (options->CookieAuthentication) {
|
||||||
if (password_len != AUTHENTICATION_COOKIE_LEN) {
|
if (password_len != AUTHENTICATION_COOKIE_LEN) {
|
||||||
log_warn(LD_CONTROL, "Got authentication cookie with wrong length (%d)",
|
log_warn(LD_CONTROL, "Got authentication cookie with wrong length (%d)",
|
||||||
password_len);
|
(int)password_len);
|
||||||
errstr = "Wrong length on authentication cookie.";
|
errstr = "Wrong length on authentication cookie.";
|
||||||
goto err;
|
goto err;
|
||||||
} else if (memcmp(authentication_cookie, password, password_len)) {
|
} else if (memcmp(authentication_cookie, password, password_len)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user