mirror of
				https://github.com/Mbed-TLS/mbedtls.git
				synced 2025-11-03 20:33:16 +03:00 
			
		
		
		
	Fix issue in ssl_free() vs ssl_config_free()
Just an overlook from moving things recently
This commit is contained in:
		@@ -6570,14 +6570,6 @@ void mbedtls_ssl_free( mbedtls_ssl_context *ssl )
 | 
				
			|||||||
        mbedtls_free( ssl->session );
 | 
					        mbedtls_free( ssl->session );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(MBEDTLS_SSL_SESSION_TICKETS)
 | 
					 | 
				
			||||||
    if( ssl->conf->ticket_keys )
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        ssl_ticket_keys_free( ssl->conf->ticket_keys );
 | 
					 | 
				
			||||||
        mbedtls_free( ssl->conf->ticket_keys );
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#if defined(MBEDTLS_X509_CRT_PARSE_C)
 | 
					#if defined(MBEDTLS_X509_CRT_PARSE_C)
 | 
				
			||||||
    if( ssl->hostname != NULL )
 | 
					    if( ssl->hostname != NULL )
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
@@ -6733,6 +6725,14 @@ void mbedtls_ssl_config_free( mbedtls_ssl_config *conf )
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if defined(MBEDTLS_SSL_SESSION_TICKETS)
 | 
				
			||||||
 | 
					    if( conf->ticket_keys )
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        ssl_ticket_keys_free( conf->ticket_keys );
 | 
				
			||||||
 | 
					        mbedtls_free( conf->ticket_keys );
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(MBEDTLS_X509_CRT_PARSE_C)
 | 
					#if defined(MBEDTLS_X509_CRT_PARSE_C)
 | 
				
			||||||
    ssl_key_cert_free( conf->key_cert );
 | 
					    ssl_key_cert_free( conf->key_cert );
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user