]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Handle EHOSTUNREACH in errno_to_stream_end_reason()
authorSebastian Hahn <sebastian@torproject.org>
Tue, 3 Aug 2010 11:57:13 +0000 (13:57 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Tue, 3 Aug 2010 12:03:36 +0000 (14:03 +0200)
We used to not recognize it and returned END_STREAM_REASON_MISC.
Instead, return END_STREAM_REASON_INTERNAL.

changes/misc-reason [new file with mode: 0644]
src/or/reasons.c

diff --git a/changes/misc-reason b/changes/misc-reason
new file mode 100644 (file)
index 0000000..2559fe6
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor bugfixes:
+    - Exit nodes didn't recognize EHOSTUNREACH as a stream ending reason
+      and sent back misc. Bugfix on 0.1.0.1-rc; fixes bug 1793.
index 45b592367cac71cfb997630e1bb465f1c2191c9f..27abb790df128053ba7e1ba14171a1e8c2cc1000 100644 (file)
@@ -161,6 +161,7 @@ errno_to_stream_end_reason(int e)
     E_CASE(EACCES):
     S_CASE(ENOTCONN):
     S_CASE(ENETUNREACH):
+    E_CASE(EHOSTUNREACH):
       return END_STREAM_REASON_INTERNAL;
     S_CASE(ECONNREFUSED):
       return END_STREAM_REASON_CONNECTREFUSED;