aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libtls/tls_protection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libtls/tls_protection.c b/src/libtls/tls_protection.c
index 574e69167..d823bae04 100644
--- a/src/libtls/tls_protection.c
+++ b/src/libtls/tls_protection.c
@@ -168,7 +168,7 @@ METHOD(tls_protection_t, process, status_t,
u_int8_t bs;
bs = this->signer_in->get_block_size(this->signer_in);
- if (data.len <= bs)
+ if (data.len < bs)
{
DBG1(DBG_TLS, "TLS record too short to verify MAC");
this->alert->add(this->alert, TLS_FATAL, TLS_BAD_RECORD_MAC);