mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-05 19:35:48 +03:00
Minor readability improvement
No behavior change. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@@ -5032,10 +5032,12 @@ static int ssl_get_next_record(mbedtls_ssl_context *ssl)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ssl->conf->badmac_limit != 0 &&
|
if (ssl->conf->badmac_limit != 0) {
|
||||||
++ssl->badmac_seen >= ssl->conf->badmac_limit) {
|
++ssl->badmac_seen;
|
||||||
MBEDTLS_SSL_DEBUG_MSG(1, ("too many records with bad MAC"));
|
if (ssl->badmac_seen >= ssl->conf->badmac_limit) {
|
||||||
return MBEDTLS_ERR_SSL_INVALID_MAC;
|
MBEDTLS_SSL_DEBUG_MSG(1, ("too many records with bad MAC"));
|
||||||
|
return MBEDTLS_ERR_SSL_INVALID_MAC;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* As above, invalid records cause
|
/* As above, invalid records cause
|
||||||
|
Reference in New Issue
Block a user