diff options
author | Matt Caswell <matt@openssl.org> | 2023-10-30 16:53:30 +0000 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-11-01 10:20:50 +0000 |
commit | b4a33ba9aaf8022589dd15261f41d35729277a68 (patch) | |
tree | 4d27a72cb32e00ce075814998e6f73424e2228de /apps | |
parent | e99c771985cbaf6ae55912b581d115f5097fe2fd (diff) |
Don't error if s_client receives exactly BUFSIZZ data
We should accept that many bytes without failing
Fixes #22551
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from https://github.com/openssl/openssl/pull/22558)
(cherry picked from commit 74ff15e1a1987686812c465ee3200bc25efa0e8f)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/s_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/s_client.c b/apps/s_client.c index 8a7650223c..78a44755cb 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -3798,7 +3798,7 @@ static void user_data_init(struct user_data_st *user_data, SSL *con, char *buf, static int user_data_add(struct user_data_st *user_data, size_t i) { - if (user_data->buflen != 0 || i > user_data->bufmax - 1) + if (user_data->buflen != 0 || i > user_data->bufmax) return 0; user_data->buflen = i; |