浏览代码

Use real_addr in send_netinfo

Reported by "troll_un"; bugfix on 0.2.0.10-alpha; fixes bug 4349.
Nick Mathewson 12 年之前
父节点
当前提交
5bea660f8e
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 4 0
      changes/bug4349
  2. 1 1
      src/or/connection_or.c

+ 4 - 0
changes/bug4349

@@ -0,0 +1,4 @@
+  o Minor bugfixes:
+    - When sending a NETINFO cell, include the original address
+      received for the other side, not its canonical address.  Found
+      by "troll_un"; fixes bug 4349; bugfix on 0.2.0.10-alpha.

+ 1 - 1
src/or/connection_or.c

@@ -1410,7 +1410,7 @@ connection_or_send_netinfo(or_connection_t *conn)
 
   /* Their address. */
   out = cell.payload + 4;
-  len = append_address_to_payload(out, &conn->_base.addr);
+  len = append_address_to_payload(out, &conn->real_addr);
   if (len<0)
     return -1;
   out += len;