浏览代码

fix (harmless) bug

svn:r299
Roger Dingledine 23 年之前
父节点
当前提交
54c57def0b
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      src/or/connection_or.c

+ 1 - 1
src/or/connection_or.c

@@ -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 */