From: Alan T. DeKok Date: Thu, 4 Jun 2020 20:45:32 +0000 (-0400) Subject: more complaints X-Git-Tag: release_3_0_22~555 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56f4dc0cd8b4bd8578957262effa45b3213d8199;p=thirdparty%2Ffreeradius-server.git more complaints --- diff --git a/src/main/tls.c b/src/main/tls.c index 4b7689d300c..2db998b2abb 100644 --- a/src/main/tls.c +++ b/src/main/tls.c @@ -697,7 +697,10 @@ int tls_handshake_recv(REQUEST *request, tls_session_t *ssn) { int err; - if (ssn->invalid_hb_used) return 0; + if (ssn->invalid_hb_used) { + REDEBUG("OpenSSL Heartbeat attack detected. Closing connection"); + return 0; + } if (ssn->dirty_in.used > 0) { err = BIO_write(ssn->into_ssl, ssn->dirty_in.data, ssn->dirty_in.used);