diff --git a/src/daemon/https/tls/gnutls_cipher.c b/src/daemon/https/tls/gnutls_cipher.c index 6edc0efe..5004d13c 100644 --- a/src/daemon/https/tls/gnutls_cipher.c +++ b/src/daemon/https/tls/gnutls_cipher.c @@ -479,7 +479,8 @@ MHD_gtls_ciphertext2compressed (MHD_gtls_session_t session, /* HMAC was not the same. */ - if (memcmp (MAC, &ciphertext.data[length], hash_size) != 0) + if ( (td != GNUTLS_MAC_FAILED) && + (memcmp (MAC, &ciphertext.data[length], hash_size) != 0) ) { MHD_gnutls_assert (); return GNUTLS_E_DECRYPTION_FAILED;