mirror of https://github.com/openssl/openssl.git
				
				
				
			test: fix coverity 1451574: improper use of negative value
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14638)
This commit is contained in:
		
							parent
							
								
									1634b2df9f
								
							
						
					
					
						commit
						9ba18520ff
					
				|  | @ -5960,7 +5960,8 @@ static int get_MFL_from_client_hello(BIO *bio, int *mfl_codemfl_code) | |||
|     memset(&pkt2, 0, sizeof(pkt2)); | ||||
|     memset(&pkt3, 0, sizeof(pkt3)); | ||||
| 
 | ||||
|     if (!TEST_true( PACKET_buf_init( &pkt, data, len ) ) | ||||
|     if (!TEST_long_gt(len, 0) | ||||
|             || !TEST_true( PACKET_buf_init( &pkt, data, len ) ) | ||||
|                /* Skip the record header */ | ||||
|             || !PACKET_forward(&pkt, SSL3_RT_HEADER_LENGTH) | ||||
|                /* Skip the handshake message header */ | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue