mirror of
				https://github.com/Mbed-TLS/mbedtls.git
				synced 2025-11-03 20:33:16 +03:00 
			
		
		
		
	tls13: nst early_data: remove duplicate code
Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
		@@ -2663,12 +2663,6 @@ static int ssl_tls13_parse_nst_early_data_ext(mbedtls_ssl_context *ssl,
 | 
				
			|||||||
                                              const unsigned char *end)
 | 
					                                              const unsigned char *end)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    MBEDTLS_SSL_CHK_BUF_READ_PTR(buf, end, 4);
 | 
					    MBEDTLS_SSL_CHK_BUF_READ_PTR(buf, end, 4);
 | 
				
			||||||
    if ((end - buf) != 4) {
 | 
					 | 
				
			||||||
        MBEDTLS_SSL_PEND_FATAL_ALERT(
 | 
					 | 
				
			||||||
            MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR,
 | 
					 | 
				
			||||||
            MBEDTLS_ERR_SSL_DECODE_ERROR);
 | 
					 | 
				
			||||||
        return MBEDTLS_ERR_SSL_DECODE_ERROR;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (ssl->session != NULL) {
 | 
					    if (ssl->session != NULL) {
 | 
				
			||||||
        ssl->session->max_early_data_size = MBEDTLS_GET_UINT32_BE(buf, 0);
 | 
					        ssl->session->max_early_data_size = MBEDTLS_GET_UINT32_BE(buf, 0);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user