소스 검색

Handle EHOSTUNREACH in errno_to_stream_end_reason()

We used to not recognize it and returned END_STREAM_REASON_MISC.
Instead, return END_STREAM_REASON_INTERNAL.
Sebastian Hahn 14 년 전
부모
커밋
b8aa14a39b
2개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      changes/misc-reason
  2. 1 0
      src/or/reasons.c

+ 3 - 0
changes/misc-reason

@@ -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.

+ 1 - 0
src/or/reasons.c

@@ -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;