Преглед изворни кода

forward-port the 0.1.0.11 stuff

svn:r4515
Roger Dingledine пре 19 година
родитељ
комит
3bb756b93b
3 измењених фајлова са 12 додато и 2 уклоњено
  1. 10 0
      ChangeLog
  2. 1 1
      src/or/connection_edge.c
  3. 1 1
      src/or/router.c

+ 10 - 0
ChangeLog

@@ -21,6 +21,16 @@ Changes in version 0.1.1.1-alpha - 2005-06-29
       test this?
 
 
+Changes in version 0.1.0.11 - 2005-06-30
+  o Bugfixes on 0.1.0.x:
+    - Fix major security bug: servers were disregarding their
+      exit policies if clients behaved unexpectedly.
+    - Make OS X init script check for missing argument, so we don't
+      confuse users who invoke it incorrectly.
+    - Fix a seg fault in "tor --hash-password foo".
+    - The MAPADDRESS control command was broken.
+
+
 Changes in version 0.1.0.10 - 2005-06-14
   o Fixes on Win32:
     - Make NT services work and start on startup on Win32 (based on

+ 1 - 1
src/or/connection_edge.c

@@ -1553,7 +1553,7 @@ connection_exit_connect(connection_t *conn)
   uint16_t port;
 
   if (!connection_edge_is_rendezvous_stream(conn) &&
-      router_compare_to_my_exit_policy(conn) == ADDR_POLICY_REJECTED) {
+      router_compare_to_my_exit_policy(conn)) {
     log_fn(LOG_INFO,"%s:%d failed exit policy. Closing.",
            safe_str(conn->address), conn->port);
     connection_edge_end(conn, END_STREAM_REASON_EXITPOLICY, conn->cpath_layer);

+ 1 - 1
src/or/router.c

@@ -640,7 +640,7 @@ router_upload_dir_desc_to_dirservers(int force)
 }
 
 /** OR only: Check whether my exit policy says to allow connection to
- * conn.  Return false if we accept; true if we reject.
+ * conn.  Return 0 if we accept; non-0 if we reject.
  */
 int
 router_compare_to_my_exit_policy(connection_t *conn)