[tor-commits] [tor/master] Add an edge_about_to_close() call to ap_about_to_close().

nickm at torproject.org nickm at torproject.org
Wed Dec 16 23:57:24 UTC 2015


commit 24fcb6adbb3896395edda38d6ecccb6ad53bddbd
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Dec 16 18:52:34 2015 -0500

    Add an edge_about_to_close() call to ap_about_to_close().
    
    Fixes #17876
---
 changes/bug17876         |    5 +++++
 src/or/connection_edge.c |    2 ++
 2 files changed, 7 insertions(+)

diff --git a/changes/bug17876 b/changes/bug17876
new file mode 100644
index 0000000..1bd3dd7
--- /dev/null
+++ b/changes/bug17876
@@ -0,0 +1,5 @@
+  o Minor bugfixes:
+    - When closing an entry connection, generate a warning if we should
+      have sent an end cell for it but we haven't.  Fixes bug 17876;
+      bugfix on 0.2.3.2-alpha.
+
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index fdb16a2..d4ef064 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -538,6 +538,8 @@ connection_ap_about_to_close(entry_connection_t *entry_conn)
   edge_connection_t *edge_conn = ENTRY_TO_EDGE_CONN(entry_conn);
   connection_t *conn = ENTRY_TO_CONN(entry_conn);
 
+  connection_edge_about_to_close(edge_conn);
+
   if (entry_conn->socks_request->has_finished == 0) {
     /* since conn gets removed right after this function finishes,
      * there's no point trying to send back a reply at this point. */



More information about the tor-commits mailing list