mirror of
				https://github.com/coturn/coturn.git
				synced 2025-11-04 08:51:00 +01:00 
			
		
		
		
	Merge branch 'AlexNedo-fix-use-after-free'
This commit is contained in:
		
						commit
						d25a1e8c6b
					
				@ -2757,8 +2757,8 @@ void close_ioa_socket_after_processing_if_necessary(ioa_socket_handle s)
 | 
				
			|||||||
		{
 | 
							{
 | 
				
			||||||
			tcp_connection *tc = s->sub_session;
 | 
								tcp_connection *tc = s->sub_session;
 | 
				
			||||||
			if (tc) {
 | 
								if (tc) {
 | 
				
			||||||
				delete_tcp_connection(tc);
 | 
					 | 
				
			||||||
				s->sub_session = NULL;
 | 
									s->sub_session = NULL;
 | 
				
			||||||
 | 
									delete_tcp_connection(tc);
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
			break;
 | 
								break;
 | 
				
			||||||
@ -2945,8 +2945,8 @@ static void eventcb_bev(struct bufferevent *bev, short events, void *arg)
 | 
				
			|||||||
			{
 | 
								{
 | 
				
			||||||
				tcp_connection *tc = s->sub_session;
 | 
									tcp_connection *tc = s->sub_session;
 | 
				
			||||||
				if (tc) {
 | 
									if (tc) {
 | 
				
			||||||
					delete_tcp_connection(tc);
 | 
					 | 
				
			||||||
					s->sub_session = NULL;
 | 
										s->sub_session = NULL;
 | 
				
			||||||
 | 
										delete_tcp_connection(tc);
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
				break;
 | 
									break;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user