aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_or.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-10-11 13:25:41 -0400
committerNick Mathewson <nickm@torproject.org>2010-10-11 13:25:41 -0400
commit4cfa6fbaca443ddb037147f71386d9d3a407c15b (patch)
treed6bf670b82df0abbd4ff67b295cd3c30650de22b /src/or/connection_or.c
parent50d77ad4b62c7b6fee1ed60ea5bc138567149d67 (diff)
downloadtor-4cfa6fbaca443ddb037147f71386d9d3a407c15b.tar.gz
tor-4cfa6fbaca443ddb037147f71386d9d3a407c15b.zip
Log OpenSSL errors coming from bufferevent_openssl
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r--src/or/connection_or.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index 069c3e133d..9bd5b9b207 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -1050,6 +1050,14 @@ connection_or_handle_event_cb(struct bufferevent *bufev, short event,
return;
}
+ if (event & BEV_EVENT_ERROR) {
+ unsigned long err;
+ while ((err = bufferevent_get_openssl_error(bufev))) {
+ tor_tls_log_one_error(conn->tls, err, LOG_WARN, LD_OR,
+ "handshaking (with bufferevent)");
+ }
+ }
+
connection_handle_event_cb(bufev, event, arg);
}
#endif