Fix bug #346: httpd broken
Fix bug introduced by myself in
commit b06e38699a
This commit is contained in:
parent
76fcad0a0b
commit
6f9a14d6c4
@ -293,6 +293,12 @@ int Socket::bind ( const char* host, int port )
|
||||
return result;
|
||||
}
|
||||
}
|
||||
#if defined(WINSOCK)
|
||||
else if( (result = ::bind(handle,(const sockaddr*)&addr,sizeof(IPAddress))) < 0 ) {
|
||||
SG_LOG(SG_IO, SG_ALERT, "bind(" << host << ":" << port << ") failed. Errno " << errno << " (" << strerror(errno) << ")");
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user