Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/tlshd/handshake.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ void tlshd_start_tls_handshake(gnutls_session_t session,
} while (ret < 0 && !gnutls_error_is_fatal(ret));
tlshd_set_nagle(session, saved);
if (ret < 0) {
/* Any errors here should default to blocking access: */
parms->session_status = EACCES;
switch (ret) {
case GNUTLS_E_CERTIFICATE_VERIFICATION_ERROR:
tlshd_log_cert_verification_error(session);
Expand All @@ -100,7 +102,6 @@ void tlshd_start_tls_handshake(gnutls_session_t session,
break;
default:
tlshd_log_notice("tlshd_start_tls_handshake unhandled error %d, returning EACCES\n", ret);
parms->session_status = EACCES;
}
return;
}
Expand Down