mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 12:11:27 -05:00 
			
		
		
		
	Remove duplicate setting of ssl->in_msgtype and ssl->in_msglen
This commit is contained in:
		
							parent
							
								
									44d89b2d53
								
							
						
					
					
						commit
						b0fe0eedce
					
				@ -6153,14 +6153,10 @@ static int ssl_get_next_record( mbedtls_ssl_context *ssl )
 | 
			
		||||
     * assuming no CID and no offset between record content and
 | 
			
		||||
     * record plaintext. */
 | 
			
		||||
    ssl_update_in_pointers( ssl );
 | 
			
		||||
 | 
			
		||||
    /* Setup internal message pointers from record structure. */
 | 
			
		||||
    ssl->in_msgtype = rec.type;
 | 
			
		||||
#if defined(MBEDTLS_SSL_DTLS_CONNECTION_ID)
 | 
			
		||||
    ssl->in_len = ssl->in_cid + rec.cid_len;
 | 
			
		||||
#endif /* MBEDTLS_SSL_DTLS_CONNECTION_ID */
 | 
			
		||||
    ssl->in_iv  = ssl->in_msg = ssl->in_len + 2;
 | 
			
		||||
    ssl->in_msglen = rec.data_len;
 | 
			
		||||
 | 
			
		||||
    /* The record content type may change during decryption,
 | 
			
		||||
     * so re-read it. */
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user