r15155@tombo: nickm | 2007-12-05 11:11:14 -0500

Add a missing "not" to check of whether to use revised handshake.


svn:r12678
This commit is contained in:
Nick Mathewson 2007-12-05 16:11:33 +00:00
parent 2d52336b60
commit 29045d21b3

View File

@ -612,7 +612,7 @@ connection_tls_continue_handshake(or_connection_t *conn)
tor_tls_err_to_string(result));
return -1;
case TOR_TLS_DONE:
if (tor_tls_used_v1_handshake(conn->tls)) {
if (! tor_tls_used_v1_handshake(conn->tls)) {
if (!tor_tls_is_server(conn->tls)) {
if (conn->_base.state == OR_CONN_STATE_TLS_HANDSHAKING) {
conn->_base.state = OR_CONN_STATE_TLS_RENEGOTIATING;