mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
fix (harmless) bug
svn:r299
This commit is contained in:
parent
fa1d446440
commit
54c57def0b
@ -523,7 +523,7 @@ int or_handshake_server_process_auth(connection_t *conn) {
|
|||||||
}
|
}
|
||||||
log(LOG_DEBUG,"or_handshake_server_process_auth(): Nonce generated.");
|
log(LOG_DEBUG,"or_handshake_server_process_auth(): Nonce generated.");
|
||||||
|
|
||||||
memmove(buf, buf+2, 46);
|
memmove(buf, buf+2, 44);
|
||||||
*(uint32_t *)(buf+44) = htonl(conn->bandwidth); /* send max link utilisation */
|
*(uint32_t *)(buf+44) = htonl(conn->bandwidth); /* send max link utilisation */
|
||||||
memcpy(buf+48,conn->nonce,8); /* append the nonce to the end of the message */
|
memcpy(buf+48,conn->nonce,8); /* append the nonce to the end of the message */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user