tls13: Improve sanity check in get_early_data_status
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
8f1de7e029
commit
f19989da31
1 changed files with 1 additions and 1 deletions
|
@ -2321,7 +2321,7 @@ cleanup:
|
|||
|
||||
int mbedtls_ssl_get_early_data_status(mbedtls_ssl_context *ssl)
|
||||
{
|
||||
if ((ssl->conf->endpoint == MBEDTLS_SSL_IS_SERVER) ||
|
||||
if ((ssl->conf->endpoint != MBEDTLS_SSL_IS_CLIENT) ||
|
||||
(!mbedtls_ssl_is_handshake_over(ssl))) {
|
||||
return MBEDTLS_ERR_SSL_BAD_INPUT_DATA;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue