Remove spurioius return in one out of four if-else clauses.

We do return right after the if-else.  This return (with its confusing
comments) comes from before 6b7c3b42 but doesn't make sense now.
This commit is contained in:
Linus Nordberg 2012-05-31 13:05:24 +02:00
parent 6b7c3b42ee
commit c074562a17

View File

@ -1296,8 +1296,6 @@ connection_or_handle_event_cb(struct bufferevent *bufev, short event,
connection_or_tls_renegotiated_cb, connection_or_tls_renegotiated_cb,
conn); conn);
conn->_base.state = OR_CONN_STATE_TLS_SERVER_RENEGOTIATING; conn->_base.state = OR_CONN_STATE_TLS_SERVER_RENEGOTIATING;
/* return 0; */
return; /* ???? */
} else if (handshakes == 2) { } else if (handshakes == 2) {
/* v2 handshake, as a server. Two handshakes happened already, /* v2 handshake, as a server. Two handshakes happened already,
* so we treat renegotiation as done. * so we treat renegotiation as done.