Verified Commit 35fbc462 authored by Grigorii Demidov's avatar Grigorii Demidov Committed by Tomas Krizek

pytests/proxy: minor improvement in rehandshake processing

parent d133ada0
......@@ -760,9 +760,12 @@ int tls_process_from_client(struct peer *client, const uint8_t *buf, ssize_t nre
} else if (count == GNUTLS_E_REHANDSHAKE) {
tls->handshake_state = TLS_HS_IN_PROGRESS;
ret = tls_process_handshake(client);
if (ret < 0) {
if (ret < 0) { /* Critical error */
return ret;
}
if (ret == 0) { /* Non fatal, most likely GNUTLS_E_AGAIN */
break;
}
continue;
} else if (count < 0) {
fprintf(stdout, "[client] gnutls_record_recv failed: %s (%zd)\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment