Changeset - r25741:13a9744cbf13
[Not reviewed]
master
0 1 0
Patric Stout - 3 years ago 2021-06-29 21:02:25
truebrain@openttd.org
Fix f7e390bd: freeaddrinfo() is not guaranteed to handle a nullptr graceful (#9404)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/network/core/tcp_connect.cpp
Show inline comments
 
@@ -45,7 +45,7 @@ TCPConnecter::~TCPConnecter()
 
	this->sockets.clear();
 
	this->sock_to_address.clear();
 

	
 
	freeaddrinfo(this->ai);
 
	if (this->ai != nullptr) freeaddrinfo(this->ai);
 
}
 

	
 
/**
0 comments (0 inline, 0 general)