src/net_socket.c bind_to_address(): Use after free in error path.
This commit is contained in:
		
							parent
							
								
									5bc957074a
								
							
						
					
					
						commit
						82109868b5
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -137,9 +137,9 @@ static bool bind_to_address(connection_t *c) {
 | 
			
		|||
	status = getaddrinfo(node, /* service = */ NULL,
 | 
			
		||||
			&ai_hints, &ai_list);
 | 
			
		||||
	if(status) {
 | 
			
		||||
		free(node);
 | 
			
		||||
		logger(LOG_WARNING, "Error looking up %s port %s: %s",
 | 
			
		||||
				node, "any", gai_strerror(status));
 | 
			
		||||
		free(node);
 | 
			
		||||
		return false;
 | 
			
		||||
	}
 | 
			
		||||
	assert(ai_list != NULL);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue