aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/aws/s2n/tls/s2n_early_data_io.c
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.com>2022-08-23 13:55:32 +0300
committerrobot-contrib <robot-contrib@yandex-team.com>2022-08-23 13:55:32 +0300
commit843fc844ab1de7725a9eaaab9d308ada1aa87e72 (patch)
tree82a048515821a5c92a53a278ec3e81aa44b3772e /contrib/restricted/aws/s2n/tls/s2n_early_data_io.c
parente200c8e2aa45d15f672a8ea2029e39a9f1620e6a (diff)
downloadydb-843fc844ab1de7725a9eaaab9d308ada1aa87e72.tar.gz
Update contrib/restricted/aws/s2n to 1.3.20
Diffstat (limited to 'contrib/restricted/aws/s2n/tls/s2n_early_data_io.c')
-rw-r--r--contrib/restricted/aws/s2n/tls/s2n_early_data_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/restricted/aws/s2n/tls/s2n_early_data_io.c b/contrib/restricted/aws/s2n/tls/s2n_early_data_io.c
index 1f3d9a9750..2af36c5a2f 100644
--- a/contrib/restricted/aws/s2n/tls/s2n_early_data_io.c
+++ b/contrib/restricted/aws/s2n/tls/s2n_early_data_io.c
@@ -84,7 +84,7 @@ static bool s2n_is_early_data_io(struct s2n_connection *conn)
S2N_RESULT s2n_early_data_record_bytes(struct s2n_connection *conn, ssize_t data_len)
{
RESULT_ENSURE_REF(conn);
- if (!s2n_is_early_data_io(conn)) {
+ if (data_len < 0 || !s2n_is_early_data_io(conn)) {
return S2N_RESULT_OK;
}