Don't hide error code from openssl

This commit is contained in:
Tatsuhiro Tsujikawa 2017-11-26 10:32:46 +09:00
parent 3992302432
commit 2ab319c137
1 changed files with 6 additions and 3 deletions

View File

@ -407,9 +407,12 @@ int Connection::tls_handshake() {
// server waits for EndOfEarlyData and Finished message from
// client, which voids the purpose of 0-RTT data. The left
// over of handshake is done through write_tls or read_tls.
rv = (tls.handshake_state == TLS_CONN_WRITE_STARTED ||
tls.wbuf.rleft()) &&
tls.earlybuf.rleft();
if ((tls.handshake_state == TLS_CONN_WRITE_STARTED ||
tls.wbuf.rleft()) &&
tls.earlybuf.rleft()) {
rv = 1;
}
break;
}