mirror of https://github.com/openssl/openssl.git
				
				
				
			Fix memory leak.
This commit is contained in:
		
							parent
							
								
									e51ec51af9
								
							
						
					
					
						commit
						3c56d65a41
					
				|  | @ -3036,6 +3036,13 @@ void ssl3_clear(SSL *s) | |||
| 		s->s3->tmp.ecdh = NULL; | ||||
| 		} | ||||
| #endif | ||||
| #ifndef OPENSSL_NO_TLSEXT | ||||
| 	if (s->s3->tlsext_authz_client_types != NULL) | ||||
| 		{ | ||||
| 		OPENSSL_free(s->s3->tlsext_authz_client_types); | ||||
| 		s->s3->tlsext_authz_client_types = NULL; | ||||
| 		} | ||||
| #endif | ||||
| 
 | ||||
| 	rp = s->s3->rbuf.buf; | ||||
| 	wp = s->s3->wbuf.buf; | ||||
|  |  | |||
|  | @ -1781,6 +1781,8 @@ static int ssl_scan_clienthello_tlsext(SSL *s, unsigned char **p, unsigned char | |||
| 			if (!s->hit) | ||||
| 				{ | ||||
| 				size_t i; | ||||
| 				if (s->s3->tlsext_authz_client_types != NULL) | ||||
| 					OPENSSL_free(s->s3->tlsext_authz_client_types); | ||||
| 				s->s3->tlsext_authz_client_types = | ||||
| 					OPENSSL_malloc(server_authz_dataformatlist_length); | ||||
| 				if (!s->s3->tlsext_authz_client_types) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue