Skip to content

Commit

Permalink
Don't error if s_client receives exactly BUFSIZZ data
Browse files Browse the repository at this point in the history
We should accept that many bytes without failing

Fixes openssl#22551
  • Loading branch information
mattcaswell committed Oct 30, 2023
1 parent 497a781 commit 78153ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/s_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 78153ab

Please sign in to comment.