]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a crash bug when running an node without IPv6-exit support.
authorNick Mathewson <nickm@torproject.org>
Sat, 29 Dec 2012 01:52:24 +0000 (20:52 -0500)
committerNick Mathewson <nickm@torproject.org>
Sat, 29 Dec 2012 06:22:34 +0000 (01:22 -0500)
Fixes bug 7814; bugfix on 0.2.4.7-alpha.

changes/bug7814 [new file with mode: 0644]
src/or/connection_edge.c

diff --git a/changes/bug7814 b/changes/bug7814
new file mode 100644 (file)
index 0000000..7ecc242
--- /dev/null
@@ -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.
index defe94408b25c96dcaafa511c53f937be6be7343..a0ebfd13970c4f64ee6fb0f7af0234accb83cf7f 100644 (file)
@@ -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;
     }
   }