aboutsummaryrefslogtreecommitdiff
path: root/src/common/tortls.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-04-09 18:45:08 -0400
committerNick Mathewson <nickm@torproject.org>2010-09-27 14:22:18 -0400
commita16ed90ec8abc329aafe0b893a7533fff480d2ff (patch)
tree8d93ef7a62ef733ad3a990d428c7242345b443a4 /src/common/tortls.c
parent865bea3b895831a486b024e90f58d72d025ce284 (diff)
downloadtor-a16ed90ec8abc329aafe0b893a7533fff480d2ff.tar
tor-a16ed90ec8abc329aafe0b893a7533fff480d2ff.tar.gz
Document and/or fix stuff found by Sebastian in code review
Thanks to Sebastian for his code-review of the bufferevents patch series.x
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r--src/common/tortls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index fb2e9ed49..318cb4088 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -1706,9 +1706,9 @@ tor_tls_init_bufferevent(tor_tls_t *tls, struct bufferevent *bufev_in,
tor_assert(evbuffer_get_length(bufferevent_get_output(bufev_in)) == 0);
tor_assert(BIO_number_read(SSL_get_rbio(tls->ssl)) == 0);
tor_assert(BIO_number_written(SSL_get_rbio(tls->ssl)) == 0);
+ bufferevent_free(bufev_in);
}
tls->state = TOR_TLS_ST_BUFFEREVENT;
- bufferevent_free(bufev_in);
out = bufferevent_openssl_socket_new(tor_libevent_get_base(),
socket,
tls->ssl,