Commit 713736a6 authored by Nick Mathewson's avatar Nick Mathewson 🤹
Browse files

Fix a memory leak in handling errors on CERTS cells. bug 7422

parent 8b5d95db
Loading
Loading
Loading
Loading

changes/bug7422

0 → 100644
+3 −0
Original line number Diff line number Diff line
  o Minor bugfixes:
    - Fix a memory leak on failing cases of channel_tls_process_certs_cell.
      Fixes bug 7422; bugfix on 0.2.4.4-alpha.
+1 −1
Original line number Diff line number Diff line
@@ -1522,7 +1522,7 @@ channel_tls_process_certs_cell(var_cell_t *cell, channel_tls_t *chan)
           safe_str(chan->conn->base_.address),                 \
           chan->conn->base_.port, (s));                        \
    connection_or_close_for_error(chan->conn, 0);               \
    return;                                                     \
    goto err;                                                   \
  } while (0)

  if (chan->conn->base_.state != OR_CONN_STATE_OR_HANDSHAKING_V3)