]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix (harmless) bug
authorRoger Dingledine <arma@torproject.org>
Wed, 28 May 2003 06:19:58 +0000 (06:19 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 28 May 2003 06:19:58 +0000 (06:19 +0000)
svn:r299

src/or/connection_or.c

index 06440091251d0889ad27d73e2d21280faa44177b..f9c3701496cb7eebe3bf7dacbbff5c9e843c56c7 100644 (file)
@@ -523,7 +523,7 @@ int or_handshake_server_process_auth(connection_t *conn) {
     }
     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 */
     memcpy(buf+48,conn->nonce,8); /* append the nonce to the end of the message */