Changeset - r11620:47f6e7f62646
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-04-09 21:36:09
rubidium@openttd.org
(svn r16005) -Fix: assertion when there is no last joined server; when you've got an unresolved address, the hostname cannot be resolved either so return it as-is.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/network/core/address.cpp
Show inline comments
 
@@ -14,7 +14,7 @@
 

	
 
const char *NetworkAddress::GetHostname()
 
{
 
	if (StrEmpty(this->hostname)) {
 
	if (StrEmpty(this->hostname) && this->address.ss_family != AF_UNSPEC) {
 
		assert(this->address_length != 0);
 
		getnameinfo((struct sockaddr *)&this->address, this->address_length, this->hostname, sizeof(this->hostname), NULL, 0, NI_NUMERICHOST);
 
	}
0 comments (0 inline, 0 general)