]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Use real_addr in send_netinfo
authorNick Mathewson <nickm@torproject.org>
Tue, 15 Nov 2011 03:42:10 +0000 (22:42 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 15 Nov 2011 03:43:40 +0000 (22:43 -0500)
Reported by "troll_un"; bugfix on 0.2.0.10-alpha; fixes bug 4349.

changes/bug4349 [new file with mode: 0644]
src/or/connection_or.c

diff --git a/changes/bug4349 b/changes/bug4349
new file mode 100644 (file)
index 0000000..633916b
--- /dev/null
@@ -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.
index 27a34d3d15003481959207a78aa793e2a762b804..1fffba7733ef9730d70c34cb10d905a91f6cde4f 100644 (file)
@@ -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;