]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add a missing return after marking a stream for bad connected cell
authorNick Mathewson <nickm@torproject.org>
Mon, 14 May 2018 19:54:48 +0000 (15:54 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 14 May 2018 19:54:48 +0000 (15:54 -0400)
Fixes bug 26072; bugfix on 0.2.4.7-alpha.

changes/bug26072 [new file with mode: 0644]
src/or/relay.c

diff --git a/changes/bug26072 b/changes/bug26072
new file mode 100644 (file)
index 0000000..2489e4f
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor bugfixes (correctness, client):
+    - Upon receiving a malformed connected cell, stop processing the cell
+      immediately.  Previously we would mark the connection for close, but
+      continue processing the cell as if the connection were open. Fixes bug
+      26072; bugfix on 0.2.4.7-alpha.
index 22ce7675238bae2c35d06d563bb4db827921191e..1c791e02ccfdc857e65ebcdefd8a1644d13d0e63 100644 (file)
@@ -1323,6 +1323,7 @@ connection_edge_process_relay_cell_not_open(
              "Got a badly formatted connected cell. Closing.");
       connection_edge_end(conn, END_STREAM_REASON_TORPROTOCOL);
       connection_mark_unattached_ap(entry_conn, END_STREAM_REASON_TORPROTOCOL);
+      return 0;
     }
     if (tor_addr_family(&addr) != AF_UNSPEC) {
       const sa_family_t family = tor_addr_family(&addr);