Commit 24fcb6ad authored by Nick Mathewson's avatar Nick Mathewson 🤹
Browse files

Add an edge_about_to_close() call to ap_about_to_close().

Fixes #17876
parent 613e0e1c
Loading
Loading
Loading
Loading

changes/bug17876

0 → 100644
+5 −0
Original line number Diff line number Diff line
  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.
+2 −0
Original line number Diff line number Diff line
@@ -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. */