mirror of https://github.com/openssl/openssl.git
				
				
				
			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 74ff15e1a1)
			
			
This commit is contained in:
		
							parent
							
								
									e99c771985
								
							
						
					
					
						commit
						b4a33ba9aa
					
				|  | @ -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; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue