[tor-commits] [tor/master] Fix a crash bug when running an node without IPv6-exit support.

nickm at torproject.org nickm at torproject.org
Sat Dec 29 06:23:59 UTC 2012


commit 5e22cfe2b40eab8c754a9c7622a1f5a85d202641
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri Dec 28 20:52:24 2012 -0500

    Fix a crash bug when running an node without IPv6-exit support.
    
    Fixes bug 7814; bugfix on 0.2.4.7-alpha.
---
 changes/bug7814          |    4 ++++
 src/or/connection_edge.c |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/changes/bug7814 b/changes/bug7814
new file mode 100644
index 0000000..7ecc242
--- /dev/null
+++ b/changes/bug7814
@@ -0,0 +1,4 @@
+  o Major bugfixes:
+    - Avoid crashing when, as a node without IPv6-exit support, a
+      client insists on getting an IPv6 address or nothing.  Fixes bug
+      #7814; bugfix on 0.2.4.7-alpha.
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index defe944..a0ebfd1 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -2427,6 +2427,7 @@ connection_exit_begin_conn(cell_t *cell, circuit_t *circ)
       tor_free(address);
       relay_send_end_cell_from_edge(rh.stream_id, circ,
                                     END_STREAM_REASON_EXITPOLICY, NULL);
+      return 0;
     }
   }
 





More information about the tor-commits mailing list