mirror of https://github.com/openssl/openssl.git
				
				
				
			Fix DTLS1.2 buffers
Fix the setup of DTLS1.2 buffers to take account of the Header Reviewed-by: Emilia Käsper <emilia@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
This commit is contained in:
		
							parent
							
								
									dc0c888811
								
							
						
					
					
						commit
						28643a1615
					
				|  | @ -648,7 +648,7 @@ int ssl3_setup_read_buffer(SSL *s) | |||
|     unsigned char *p; | ||||
|     size_t len, align = 0, headerlen; | ||||
| 
 | ||||
|     if (SSL_version(s) == DTLS1_VERSION || SSL_version(s) == DTLS1_BAD_VER) | ||||
|     if (SSL_IS_DTLS(s)) | ||||
|         headerlen = DTLS1_RT_HEADER_LENGTH; | ||||
|     else | ||||
|         headerlen = SSL3_RT_HEADER_LENGTH; | ||||
|  | @ -687,7 +687,7 @@ int ssl3_setup_write_buffer(SSL *s) | |||
|     unsigned char *p; | ||||
|     size_t len, align = 0, headerlen; | ||||
| 
 | ||||
|     if (SSL_version(s) == DTLS1_VERSION || SSL_version(s) == DTLS1_BAD_VER) | ||||
|     if (SSL_IS_DTLS(s)) | ||||
|         headerlen = DTLS1_RT_HEADER_LENGTH + 1; | ||||
|     else | ||||
|         headerlen = SSL3_RT_HEADER_LENGTH; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue